.education-page {
  padding: 40px 0 100px;
}

/* ---------- Хлебные крошки ---------- */

.education-page .breadcrumbs {
  width: min(100% - 40px, 1400px);
  margin: 0 auto 36px;
  padding: 0;

  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.education-page .breadcrumbs a {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 3px 0;

  color: #c8a27a;
  font-weight: 500;
  text-decoration: none;

  transition: color 0.2s ease;
}

.education-page .breadcrumbs a:hover {
  color: #a67c52;
}

.education-page .breadcrumbs a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;

  background: currentColor;

  transition: width 0.2s ease;
}

.education-page .breadcrumbs a:hover::after {
  width: 100%;
}

.education-page .breadcrumb-separator {
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1;
}

.education-page .breadcrumb-current {
  color: #666;
  font-weight: 500;
}

/* ---------- Заголовок ---------- */

.education-page .education-title {
  width: min(100% - 40px, 1000px);

  margin: 0 auto 52px;
  padding: 0;

  font-family: "Montserrat", sans-serif;
  font-size: 2.8rem;
  line-height: 1.15;
  font-weight: 700;

  text-align: left;
  color: var(--dark);
}

.education-page .education-title .accent {
  color: var(--accent);
}

/* ---------- Список мероприятий ---------- */

.education-events {
  width: min(100% - 40px, 1200px);

  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* ---------- Карточка ---------- */

.education-event {
  min-width: 0;
}

.education-event-card {
  position: relative;

  overflow: hidden;

  width: 100%;

  border-radius: 20px;
  background: #fff;

  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* ---------- Постер ---------- */

.education-poster-link {
  position: relative;

  display: block;

  width: 100%;

  line-height: 0;
  text-decoration: none;

  cursor: zoom-in;
}

.education-poster {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;
}

/* ---------- Кнопка ---------- */

.education-event-button {
  position: absolute;
  left: 50%;
  bottom: 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 170px;
  min-height: 48px;

  padding: 11px 28px;

  transform: translateX(-50%);

  border: 0;
  border-radius: 999px;

  background: rgba(185, 140, 97, 0.96);
  color: #fff;

  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;

  text-align: center;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.education-event-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Hover только для мыши ---------- */

@media (hover: hover) and (pointer: fine) {

  .education-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
  }

  .education-event-button:hover {
    transform: translateX(-50%) translateY(-3px);

    background: #a67c52;
    color: #fff;

    box-shadow: 0 8px 22px rgba(185, 140, 97, 0.35);
    text-decoration: none;
  }

  .education-event-button:active {
    transform: translateX(-50%) translateY(0);
  }
}

/* ---------- Планшет ---------- */

@media (max-width: 900px) {

  .education-events {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .education-title {
    font-size: 2.3rem;
  }
}

/* ---------- Телефон ---------- */

@media (max-width: 600px) {

  .education-page {
    padding: 24px 0 60px;
  }

  .education-page .breadcrumbs {
    width: calc(100% - 32px);
    margin-bottom: 28px;

    font-size: 14px;
  }

  .education-page .education-title {
    width: calc(100% - 32px);

    margin-bottom: 32px;

    font-size: 2rem;
    line-height: 1.2;
  }

  .education-events {
    width: calc(100% - 32px);
    gap: 24px;
  }

  .education-event-card {
    border-radius: 14px;
  }

  .education-event-button {
    bottom: 14px;

    min-width: 150px;
    min-height: 44px;

    padding: 10px 24px;

    font-size: 14px;
  }
}

/* ---------- Маленький телефон ---------- */

@media (max-width: 400px) {

  .education-page .education-title {
    font-size: 1.7rem;
  }

  .education-event-card {
    border-radius: 11px;
  }

  .education-event-button {
    bottom: 10px;

    min-width: 140px;
    min-height: 42px;

    padding: 9px 20px;

    font-size: 13px;
  }
}

/* ---------- Если у пользователя отключены анимации ---------- */

@media (prefers-reduced-motion: reduce) {

  .education-page .breadcrumbs a,
  .education-page .breadcrumbs a::after,
  .education-event-card,
  .education-event-button {
    transition: none;
  }
}