.hero-community--events .hero-community__title {
  position: absolute;
  top: 297px;
  left: var(--container-padding);
  width: 649px;
  max-width: calc(100% - var(--container-padding) * 2);
  margin: 0;
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-community--events .hero-community__lead {
  position: absolute;
  top: 405px;
  left: var(--container-padding);
  width: 798px;
  max-width: calc(100% - var(--container-padding) * 2);
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
}

.events-page {
  background-color: var(--color-bg-gray);
  padding: 80px var(--container-padding) 0;
}

.events-page--upcoming {
  padding-bottom: 0;
}

.events-past {
  background-color: var(--color-bg-gray);
  padding: 80px var(--container-padding) 120px;
}

.events-page__title--past {
  width: 519px;
  max-width: 100%;
  margin: 0 0 30px;
  min-height: 55px;
  white-space: nowrap;
}

.events-page__inner {
  width: 1360px;
  max-width: 100%;
  margin-inline: auto;
}

.events-page__title {
  width: 513px;
  max-width: 100%;
  margin: 0 0 30px;
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.events-page__grid {
  display: grid;
  grid-template-columns: repeat(2, 670px);
  gap: 20px;
  justify-content: start;
}

.event-card {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 20px;
  min-height: 260px;
  padding: 20px;
  background-color: var(--color-bg-white);
}

.event-card__image {
  flex: 0 0 305px;
  width: 305px;
  min-height: 216px;
  height: auto;
  align-self: stretch;
  overflow: hidden;
  background-color: #d9d9d9;
}

.event-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.event-card[hidden] {
  display: none !important;
}

.event-card__content {
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  height: auto;
  min-height: 216px;
}

.event-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.event-card__tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-width: 100%;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card__tag--date {
  min-width: 96px;
  max-width: 100%;
  padding: 8px 12px;
  background-color: var(--Accent, #0c3eb3);
  color: var(--color-text-inverse);
  white-space: nowrap;
}

.event-card__tag--type {
  min-width: 76px;
  padding: 6px 10px;
  background-color: var(--background-gray, #f5f6f7);
  color: var(--Tetriary-text, #8a8e92);
}

.event-card__title {
  width: 304px;
  max-width: 100%;
  margin: 31px 0 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.event-card__registration {
  width: 304px;
  max-width: 100%;
  margin: 20px 0 0;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-secondary);
}

.event-card__link {
  margin-top: auto;
  flex-shrink: 0;
  width: fit-content;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-secondary);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
  transition: color 0.25s ease, background-size 0.25s ease;
}

.event-card__link:hover,
.event-card__link:focus-visible {
  color: var(--Accent, #0c3eb3);
  background-size: 0 1px;
}

/* —— Пагинация (как в библиотеке моделей) —— */

.events-past__pagination-wrap {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.events-past .model-library__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 284px;
  height: 40px;
  margin: 0;
  transform: none;
}

.events-past .model-library__pagination[hidden] {
  display: none;
}

.events-past .model-library__page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: none;
  background-color: transparent;
  font-family: var(--font-body);
  font-size: var(--text-s-size);
  line-height: 1;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.events-past .model-library__page-btn:hover {
  color: var(--Accent, #0c3eb3);
}

.events-past .model-library__page-btn.is-active {
  background-color: transparent;
  color: var(--Accent, #0c3eb3);
  pointer-events: none;
}

.events-past .model-library__page-btn--arrow {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0.5px solid var(--Line, #939CA6);
  border-radius: 4px;
  background: var(--background-gray, #F5F6F7);
}

.events-past .model-library__page-btn--arrow:hover {
  border-color: var(--color-accent-card);
}

.events-past .model-library__page-btn--arrow img {
  display: block;
  width: 17px;
  height: 12px;
}

.events-past .model-library__page-btn--arrow.model-library__page-btn--next img {
  transform: rotate(180deg);
}

.events-past .model-library__page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-family: var(--font-body);
  font-size: var(--text-s-size);
  color: var(--color-text-tertiary);
}

@media (min-width: 1201px) {
  /* Figma 1440 — фиксируем макет, перебиваем responsive-1200.css */
  .hero-community--events {
    --container-padding: 40px;
  }

  .hero-community--events,
  .hero-community--events .hero-community__content {
    height: 517px;
  }

  .hero-community--events .hero-community__content {
    display: block;
    padding: 0;
  }

  .hero-community--events .hero-community__breadcrumbs {
    position: absolute;
    top: calc(var(--header-height) + 40px);
    left: var(--container-padding);
    right: var(--container-padding);
    margin: 0;
  }

  .events-page,
  .events-past {
    --container-padding: 40px;
  }

  .events-page__grid {
    grid-template-columns: repeat(2, 670px);
    gap: 20px;
  }

  .event-card {
    flex-direction: row;
  }
}

@media (min-width: 1201px) and (max-width: 1360px) {
  /* Узкий desktop: колонки сжимаются пропорционально, без перескока на 1200 */
  .events-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  /* Масштаб 1440 → 1200 (×5/6): та же вёрстка, пропорционально уменьшенная */

  /* Hero — те же размеры, что на 1440 (перебивает responsive-1200.css) */
  .hero-community--events {
    --container-padding: 40px;
  }

  .hero-community--events,
  .hero-community--events .hero-community__content {
    height: 517px;
  }

  .hero-community--events .hero-community__content {
    display: block;
    padding: 0;
  }

  .hero-community--events .hero-community__breadcrumbs {
    position: absolute;
    top: calc(var(--header-height) + 40px);
    left: var(--container-padding);
    right: var(--container-padding);
    margin: 0;
  }

  .hero-community--events .hero-community__title {
    position: absolute;
    top: 297px;
    left: var(--container-padding);
    width: 649px;
    max-width: calc(100% - var(--container-padding) * 2);
    margin: 0;
    font-size: 80px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .hero-community--events .hero-community__lead {
    position: absolute;
    top: 405px;
    left: var(--container-padding);
    width: 798px;
    max-width: calc(100% - var(--container-padding) * 2);
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
  }

  .events-page {
    padding-top: 67px;
  }

  .events-past {
    padding-top: 67px;
    padding-bottom: 100px;
  }

  .events-page__inner {
    width: 1133px;
  }

  .events-page__title {
    width: 428px;
    margin-bottom: 25px;
    font-size: 42px;
    white-space: nowrap;
  }

  .events-page__title--past {
    width: 433px;
    margin-bottom: 25px;
    min-height: 46px;
  }

  .events-page__grid {
    grid-template-columns: repeat(2, 558px);
    gap: 17px;
  }

  .event-card {
    min-height: 217px;
    padding: 17px;
    gap: 17px;
    flex-direction: row;
  }

  .event-card__image {
    flex: 0 0 254px;
    width: 254px;
    min-height: 180px;
    height: auto;
    align-self: stretch;
  }

  .event-card__content {
    height: auto;
    min-height: 180px;
  }

  .event-card__tags {
    gap: 8px;
  }

  .event-card__tag {
    min-height: 27px;
    font-size: 12px;
  }

  .event-card__tag--date {
    min-width: 80px;
    padding: 7px 10px;
  }

  .event-card__tag--type {
    min-width: 63px;
    padding: 5px 8px;
  }

  .event-card__title {
    width: 253px;
    margin-top: 26px;
    font-size: 20px;
  }

  .event-card__registration {
    width: 253px;
    margin-top: 17px;
    font-size: 14px;
  }

  .event-card__link {
    font-size: 14px;
  }

  .events-past__pagination-wrap {
    padding-top: 33px;
  }

  .events-past .model-library__pagination {
    gap: 8px;
    width: 237px;
    height: 33px;
  }

  .events-past .model-library__page-btn {
    min-width: 33px;
    height: 33px;
    padding: 0 7px;
  }

  .events-past .model-library__page-ellipsis {
    min-width: 33px;
    height: 33px;
  }
}

@media (min-width: 944px) and (max-width: 1024px) {
  /* Единый отступ 40px как на 1440 / 1200 (перебивает :root 32px) */
  .hero-community--events,
  .events-page,
  .events-past {
    --container-padding: 40px;
  }

  .hero-community--events,
  .hero-community--events .hero-community__content {
    height: 460px;
  }

  .hero-community--events .hero-community__content {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-community--events .hero-community__breadcrumbs {
    position: absolute;
    top: calc(var(--header-height) + 40px);
    left: var(--container-padding);
    right: var(--container-padding);
    margin: 0;
  }

  .hero-community--events .hero-community__title {
    position: absolute;
    top: 265px;
    left: var(--container-padding);
    width: 487px;
    max-width: calc(100% - var(--container-padding) * 2);
    margin: 0;
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    white-space: nowrap;
  }

  .hero-community--events .hero-community__lead {
    position: absolute;
    top: 351px;
    left: var(--container-padding);
    width: 529px;
    max-width: calc(100% - var(--container-padding) * 2);
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    color: #ffffff;
  }

  .events-page {
    padding: 40px var(--container-padding) 0;
  }

  .events-past {
    padding: 40px var(--container-padding) 80px;
  }

  .events-page__inner {
    width: 944px;
    max-width: 100%;
    margin-inline: 0;
  }

  .events-page__title {
    width: 411px;
    max-width: 100%;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .events-page__title--past {
    width: 411px;
    max-width: 100%;
    min-height: 0;
    white-space: nowrap;
  }

  .events-page__grid {
    grid-template-columns: repeat(2, 462px);
    gap: 20px;
    justify-content: start;
  }

  .events-page--upcoming .event-card:nth-child(n + 3) {
    display: none;
  }

  .event-card {
    box-sizing: border-box;
    flex-direction: column;
    width: 462px;
    max-width: 100%;
    min-height: 470px;
    padding: 20px;
    gap: 20px;
  }

  .event-card__image {
    flex: none;
    width: 422px;
    max-width: 100%;
    height: 216px;
  }

  .event-card__image img {
    object-position: center top;
  }

  .event-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1;
    gap: 12px;
  }

  .event-card__tags {
    gap: 16px;
  }

  .event-card__tag {
    min-height: 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
  }

  .event-card__tag--date {
    min-width: 96px;
    padding: 8px 12px;
    border-radius: 2px;
  }

  .event-card__tag--type {
    min-width: 76px;
    padding: 6px 10px;
    border-radius: 2px;
  }

  .event-card--past .event-card__tag--date {
    min-width: 117px;
  }

  .event-card--past .event-card__tag--type {
    min-width: 109px;
  }

  .event-card__title {
    width: 100%;
    max-width: 422px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .event-card__registration {
    width: 100%;
    max-width: 422px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .event-card__link {
    margin-top: auto;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    background-image: none;
  }

  .event-card__link:hover,
  .event-card__link:focus-visible {
    background-image: none;
  }

  .events-past__pagination-wrap {
    padding-top: 36px;
  }

  .events-past .model-library__pagination {
    gap: 8px;
    width: 237px;
    height: 33px;
  }

  .events-past .model-library__page-btn {
    min-width: 33px;
    height: 33px;
    padding: 0 7px;
  }

  .events-past .model-library__page-ellipsis {
    min-width: 33px;
    height: 33px;
  }
}

@media (min-width: 688px) and (max-width: 943px) {
  /* Figma 768 */
  .hero-community--events,
  .events-page,
  .events-past {
    --container-padding: 40px;
  }

  .hero-community--events,
  .hero-community--events .hero-community__content {
    height: 500px;
  }

  .hero-community--events .hero-community__content {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .hero-community--events .hero-community__breadcrumbs {
    position: absolute;
    top: calc(var(--header-height) + 40px);
    left: var(--container-padding);
    right: var(--container-padding);
    margin: 0;
  }

  .hero-community--events .hero-community__title {
    position: absolute;
    top: 271px;
    left: var(--container-padding);
    width: 487px;
    max-width: calc(100% - var(--container-padding) * 2);
    margin: 0;
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    white-space: nowrap;
  }

  .hero-community--events .hero-community__lead {
    position: absolute;
    top: 351px;
    left: var(--container-padding);
    width: 521px;
    max-width: calc(100% - var(--container-padding) * 2);
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    color: #ffffff;
  }

  .events-page {
    padding: 40px var(--container-padding) 0;
  }

  .events-past {
    padding: 40px var(--container-padding) 80px;
  }

  .events-page__inner {
    width: 688px;
    max-width: 100%;
    margin-inline: 0;
  }

  .events-page__title {
    width: 411px;
    max-width: 100%;
    margin-bottom: 30px;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .events-page__title--past {
    width: 411px;
    max-width: 100%;
    min-height: 0;
    white-space: nowrap;
  }

  .events-page__grid {
    grid-template-columns: repeat(2, 334px);
    gap: 20px;
    justify-content: start;
  }

  .events-page--upcoming .event-card:nth-child(n + 3) {
    display: none;
  }

  .event-card {
    box-sizing: border-box;
    flex-direction: column;
    width: 334px;
    max-width: 100%;
    min-height: 470px;
    padding: 20px;
    gap: 20px;
  }

  .event-card__image {
    flex: none;
    width: 294px;
    max-width: 100%;
    height: 216px;
  }

  .event-card__image img {
    object-position: center top;
  }

  .event-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1;
    gap: 12px;
  }

  .event-card__tags {
    gap: 16px;
  }

  .event-card__tag {
    min-height: 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
  }

  .event-card__tag--date {
    min-width: 96px;
    padding: 8px 12px;
    border-radius: 2px;
  }

  .event-card__tag--type {
    min-width: 76px;
    padding: 6px 10px;
    border-radius: 2px;
  }

  .event-card--past .event-card__tag--date {
    min-width: 117px;
  }

  .event-card--past .event-card__tag--type {
    min-width: 109px;
  }

  .event-card__title {
    width: 100%;
    max-width: 294px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .event-card__registration {
    width: 100%;
    max-width: 294px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .event-card__link {
    margin-top: auto;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    background-image: none;
  }

  .event-card__link:hover,
  .event-card__link:focus-visible {
    background-image: none;
  }

  .events-past__pagination-wrap {
    padding-top: 36px;
  }

  .events-past .model-library__pagination {
    gap: 10px;
    width: 284px;
    height: 40px;
  }

  .events-past .model-library__page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
  }

  .events-past .model-library__page-btn--arrow {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .events-past .model-library__page-ellipsis {
    min-width: 40px;
    height: 40px;
  }
}

@media (max-width: 687px) {
  /* Figma 375 — hero */
  .hero-community--events,
  .hero-community--events .hero-community__content {
    height: 400px;
    min-height: 400px;
  }

  .hero-community--events .hero-community__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 0 var(--container-padding) 40px;
    max-width: 100%;
  }

  .hero-community--events .hero-community__breadcrumbs {
    position: absolute;
    top: calc(var(--header-height) + 16px);
    left: var(--container-padding);
    right: auto;
    margin: 0;
  }

  .hero-community--events .hero-community__title {
    position: static;
    width: 275px;
    max-width: 100%;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: normal;
  }

  .hero-community--events .hero-community__lead {
    display: block !important;
    position: static;
    width: 344px;
    max-width: 100%;
    margin: 15px 0 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
    letter-spacing: 0;
  }

  /* Figma 375 — секции */
  .events-page {
    padding: 80px var(--container-padding) 0;
  }

  .events-past {
    padding: 80px var(--container-padding) 64px;
  }

  .events-page__inner {
    width: 100%;
    max-width: 345px;
    margin-inline: auto;
  }

  .events-page__title {
    width: 308px;
    max-width: 100%;
    margin: 0 0 20px;
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: normal;
  }

  .events-page__title--past {
    width: 311px;
    max-width: 100%;
    min-height: 0;
    margin: 0 0 20px;
    white-space: normal;
  }

  .events-past .events-page__grid {
    gap: 20px;
  }

  .events-past .event-card--past .event-card__tag--date {
    min-width: 0;
    min-height: 30px;
    padding: 8px 12px;
  }

  .events-past .event-card--past .event-card__tag--type {
    min-width: 0;
    min-height: 32px;
    padding: 6px 10px;
  }

  .events-past .event-card--past .event-card__title {
    width: 100%;
    max-width: 305px;
    min-height: 0;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .events-past .event-card--past .event-card__link {
    margin-top: auto;
    width: 100%;
    max-width: 305px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    background-image: none;
  }

  .events-past .event-card--past .event-card__link:hover,
  .events-past .event-card--past .event-card__link:focus-visible {
    background-image: none;
  }

  .events-page__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: stretch;
  }

  .events-page--upcoming .event-card:nth-child(n + 3) {
    display: none;
  }

  .events-past__pagination-wrap {
    padding-top: 32px;
  }

  /* Figma 375 — карточка 345×470 */
  .event-card {
    box-sizing: border-box;
    flex-direction: column;
    width: 345px;
    max-width: 100%;
    min-height: 470px;
    padding: 20px;
    gap: 20px;
  }

  .event-card__image {
    flex: none;
    width: 305px;
    max-width: 100%;
    height: 216px;
    aspect-ratio: auto;
  }

  .event-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1;
    gap: 12px;
  }

  .event-card__tags {
    gap: 16px;
  }

  .event-card__tag {
    min-height: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
  }

  .event-card__tag--date {
    min-width: 0;
    min-height: 30px;
    padding: 8px 12px;
    border-radius: 2px;
  }

  .event-card__tag--type {
    min-width: 0;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 2px;
  }

  .event-card__title {
    width: 100%;
    max-width: 305px;
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .event-card__registration {
    width: 100%;
    max-width: 305px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .event-card__link {
    margin-top: auto;
    width: 100%;
    max-width: 305px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    background-image: none;
  }

  .event-card__link:hover,
  .event-card__link:focus-visible {
    background-image: none;
  }
}

/* ── Fluid fix: hero + breadcrumbs + карточки без скачков ── */
.hero-community--events {
  overflow-x: clip;
}

.hero-community--events,
.hero-community--events .hero-community__content {
  height: auto;
  min-height: clamp(400px, calc(400px + (517 - 400) * (100vw - 375px) / 1065), 517px);
}

.hero-community--events .hero-community__title {
  width: 100%;
  max-width: min(649px, calc(100vw - var(--container-padding) * 2));
  margin: 0;
  font-size: clamp(40px, calc(40px + 40 * (100vw - 375px) / 1065), 80px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: normal;
}

.hero-community--events .hero-community__lead {
  display: block;
  width: 100%;
  max-width: min(798px, calc(100vw - var(--container-padding) * 2));
  margin: clamp(12px, calc(12px + 8 * (100vw - 375px) / 1065), 20px) 0 0;
  font-size: clamp(14px, calc(14px + 6 * (100vw - 375px) / 1065), 20px);
  line-height: 1.3;
}

@media (max-width: 1439px) {
  .hero-community--events .hero-community__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 0 var(--container-padding) clamp(32px, calc(32px + 8 * (100vw - 500px) / 939), 40px);
  }

  .hero-community--events .hero-community__breadcrumbs {
    position: absolute;
    top: calc(var(--header-height) + clamp(16px, calc(16px + 8 * (100vw - 500px) / 939), 24px));
    left: var(--container-padding);
    right: var(--container-padding);
    z-index: 2;
    margin: 0;
    max-width: calc(100% - var(--container-padding) * 2);
  }

  .hero-community--events .hero-community__title,
  .hero-community--events .hero-community__lead {
    position: static;
    width: 100%;
    left: auto;
    top: auto;
  }
}

@media (min-width: 1025px) and (max-width: 1439px) {
  .hero-community--events .hero-community__breadcrumbs {
    top: calc(var(--header-height) + clamp(24px, calc(24px + 16 * (100vw - 1200px) / 240), 40px));
    z-index: 2;
  }
}

/* Events — единая fluid-сетка без скачка 1439/1440 */
.events-page,
.events-past {
  overflow-x: clip;
  padding-top: clamp(40px, calc(40px + 40 * (100vw - 375px) / 1065), 80px);
}

.events-past {
  padding-bottom: clamp(64px, calc(64px + 56 * (100vw - 375px) / 1065), 120px);
}

.events-page__inner {
  width: 100%;
  max-width: min(
    1360px,
    calc(345px + (1360 - 345) * (100vw - 375px) / (1440 - 375)),
    calc(100vw - var(--container-padding) * 2)
  );
  margin-inline: auto;
}

.events-page__title,
.events-page__title--past {
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin-bottom: clamp(20px, calc(20px + 10 * (100vw - 375px) / 1065), 30px);
  font-size: clamp(30px, calc(30px + 20 * (100vw - 375px) / 1065), 50px);
  white-space: normal;
}

.events-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, calc(16px + 4 * (100vw - 375px) / 1065), 20px);
  width: 100%;
}

.event-card {
  box-sizing: border-box;
  display: flex;
  width: auto;
  max-width: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(16px, calc(16px + 4 * (100vw - 375px) / 1065), 20px);
  padding: clamp(16px, calc(16px + 4 * (100vw - 375px) / 1065), 20px);
}

.event-card__image {
  flex: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 305 / 216;
}

.event-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: auto;
  min-height: 0;
  flex: 1;
  gap: clamp(10px, calc(10px + 2 * (100vw - 375px) / 1065), 12px);
}

.event-card__title,
.event-card__registration {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

.event-card__title {
  margin-top: clamp(8px, calc(8px + 23 * (100vw - 375px) / 1065), 31px);
  font-size: clamp(20px, calc(20px + 4 * (100vw - 375px) / 1065), 24px);
}

.event-card__registration {
  margin-top: clamp(12px, calc(12px + 8 * (100vw - 375px) / 1065), 20px);
  font-size: clamp(14px, calc(14px + 2 * (100vw - 375px) / 1065), 16px);
}

.event-card__link {
  margin-top: auto;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(14px, calc(14px + 2 * (100vw - 375px) / 1065), 16px);
  text-decoration: underline;
  text-underline-offset: 2px;
  background-image: none;
}

.event-card__link:hover,
.event-card__link:focus-visible {
  color: var(--Accent, #0c3eb3);
  background-image: none;
}

.event-card__tag {
  font-size: clamp(12px, calc(12px + 2 * (100vw - 375px) / 1065), 14px);
}

.events-past__pagination-wrap {
  padding-top: clamp(32px, calc(32px + 8 * (100vw - 375px) / 1065), 40px);
}

@media (max-width: 1200px) {
  .events-page--upcoming .event-card:nth-child(n + 3) {
    display: none;
  }
}

/* Колоночные карточки — Figma 375→768: одна колонка, плавное масштабирование */
@media (max-width: 767px) {
  .events-page,
  .events-past {
    --container-padding: clamp(15px, calc(15px + 25 * (100vw - 375px) / 393), 40px);
  }

  .events-page {
    padding: calc(80px - 40 * (100vw - 375px) / 393) var(--container-padding) 0;
  }

  .events-past {
    padding: calc(80px - 40 * (100vw - 375px) / 393) var(--container-padding)
      calc(64px + 16 * (100vw - 375px) / 393);
  }

  .events-page__inner {
    margin-inline: auto;
    max-width: min(
      calc(100vw - var(--container-padding) * 2),
      max(
        345px,
        calc(345px + (688 - 345) * (100vw - 375px) / 393)
      )
    );
  }

  .events-page__title,
  .events-page__title--past {
    width: auto;
    max-width: 100%;
    margin-bottom: calc(20px + 10 * (100vw - 375px) / 393);
    font-size: calc(30px + 10 * (100vw - 375px) / 393);
    white-space: normal;
  }

  .events-page__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
  }

  .event-card {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: 470px;
    padding: 20px;
    gap: 20px;
  }

  .event-card__image {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 216px;
    aspect-ratio: auto;
  }

  .event-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 1;
    gap: 12px;
  }

  .event-card__tags {
    gap: 16px;
  }

  .event-card__tag {
    min-height: calc(30px + 2 * (100vw - 375px) / 393);
    font-size: calc(12px + 2 * (100vw - 375px) / 393);
    line-height: 1;
  }

  .event-card__tag--date {
    min-width: 0;
    padding: 8px 12px;
    border-radius: 2px;
  }

  .event-card__tag--type {
    min-width: 0;
    padding: 6px 10px;
    border-radius: 2px;
  }

  .event-card__title {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .event-card__registration {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.3;
  }

  .event-card__link {
    width: 100%;
    max-width: 100%;
    margin-top: auto;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 2px;
    background-image: none;
  }

  .event-card__link:hover,
  .event-card__link:focus-visible {
    color: var(--Accent, #0c3eb3);
    background-image: none;
  }

  .events-past__pagination-wrap {
    padding-top: calc(32px + 4 * (100vw - 375px) / 393);
  }
}

/* Колоночные карточки — Figma 768 (334) → 944 (462) → 1200 (518), без скачков */
@media (min-width: 768px) and (max-width: 1200px) {
  .events-page,
  .events-past {
    --container-padding: 40px;
  }

  .events-page {
    padding: 40px var(--container-padding) 0;
  }

  .events-past {
    padding: 40px var(--container-padding) 80px;
  }

  .events-page__inner {
    margin-inline: auto;
    max-width: min(
      calc(100vw - var(--container-padding) * 2),
      min(
        calc(944px + 92 * max(0px, 100vw - 1024px) / 176),
        calc(688px + 256 * max(0px, min(100vw, 1024px) - 768px) / 176)
      )
    );
  }

  .events-page__grid {
    grid-template-columns: repeat(
      2,
      minmax(
        0,
        min(462px, calc(334px + 128 * max(0px, 100vw - 768px) / 176))
      )
    );
    gap: 20px;
    justify-content: start;
  }

  .event-card {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: calc(470px + 24 * max(0px, 100vw - 1024px) / 176);
    padding: 20px;
    gap: 20px;
  }

  .event-card__image {
    flex: none;
    width: 100%;
    max-width: 100%;
    height: 216px;
    aspect-ratio: auto;
  }

  .event-card__content {
    height: auto;
    min-height: 0;
    gap: 12px;
  }

  .event-card__tags {
    gap: 16px;
  }

  .event-card__tag {
    min-height: 32px;
    font-size: 14px;
    line-height: 1;
  }

  .event-card__tag--date {
    padding: 8px 12px;
    border-radius: 2px;
  }

  .event-card__title {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    font-size: min(
      24px,
      calc(20px + 4 * max(0px, min(100vw, 944px) - 768px) / 176)
    );
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .event-card__registration {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.3;
  }

  .event-card__link {
    width: 100%;
    margin-top: auto;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 2px;
    background-image: none;
  }

  .event-card__link:hover,
  .event-card__link:focus-visible {
    background-image: none;
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .events-page__grid {
    grid-template-columns: repeat(
      2,
      minmax(0, calc(462px + 56 * (100vw - 1024px) / 176))
    );
  }
}

@media (min-width: 944px) and (max-width: 1200px) {
  .event-card__title {
    font-size: 24px;
  }
}

@media (min-width: 1201px) {
  .events-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-page--upcoming .event-card:nth-child(n + 3) {
    display: flex;
  }

  .event-card {
    flex-direction: row;
    align-items: stretch;
    min-height: clamp(217px, calc(217px + 43 * (100vw - 1201px) / 239), 260px);
  }

  .event-card__image {
    flex: 0 0 clamp(254px, calc(254px + 51 * (100vw - 1201px) / 239), 305px);
    width: clamp(254px, calc(254px + 51 * (100vw - 1201px) / 239), 305px);
    max-width: min(45%, 305px);
    min-height: clamp(180px, calc(180px + 36 * (100vw - 1201px) / 239), 216px);
    height: auto;
    align-self: stretch;
    aspect-ratio: unset;
  }

  .event-card__image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .event-card__content {
    min-height: clamp(180px, calc(180px + 36 * (100vw - 1201px) / 239), 216px);
  }

  .event-card__title {
    margin-top: clamp(16px, calc(16px + 15 * (100vw - 1201px) / 239), 31px);
  }

  .event-card__link {
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 100% 1px;
    transition: color 0.25s ease, background-size 0.25s ease;
  }

  .event-card__link:hover,
  .event-card__link:focus-visible {
    background-size: 0 1px;
  }
}

@media (min-width: 1440px) {
  .hero-community--events .hero-community__content {
    display: block;
    padding: 0;
  }

  .hero-community--events .hero-community__breadcrumbs {
    position: absolute;
    top: calc(var(--header-height) + 40px);
    left: var(--container-padding);
    right: var(--container-padding);
    z-index: 2;
    margin: 0;
  }

  .hero-community--events .hero-community__title {
    position: absolute;
    top: 297px;
    left: var(--container-padding);
    width: min(649px, calc(100% - var(--container-padding) * 2));
    max-width: calc(100% - var(--container-padding) * 2);
    font-size: 80px;
    white-space: nowrap;
  }

  .hero-community--events .hero-community__lead {
    position: absolute;
    top: 405px;
    left: var(--container-padding);
    width: min(798px, calc(100% - var(--container-padding) * 2));
    max-width: calc(100% - var(--container-padding) * 2);
    margin: 0;
    font-size: 20px;
  }

  .events-page__inner {
    width: 1360px;
    max-width: min(1360px, calc(100vw - var(--container-padding) * 2));
    margin-inline: auto;
  }

  .events-page__grid {
    grid-template-columns: repeat(2, 670px);
    gap: 20px;
    justify-content: start;
    width: 100%;
  }

  .event-card {
    flex-direction: row;
  }
}
