.schools-page {
  max-width: 1280px;
  margin: 100px auto;
  padding: 0 20px;
}
.schools-page * {
  box-sizing: border-box;
}
.schools-page .schools-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  row-gap: 0;
}
.schools-page .schools-info--no-image {
  display: block;
}
.schools-page .schools-info__image {
  grid-row: span 3;
}
.schools-page .schools-info__image img {
  width: 100%;
  object-fit: contain;
  height: auto;
  border-radius: 27px;
}
.schools-page .schools-info__text {
  margin: 0 0 16px;
}
.schools-page .schools-info__text-body #main-content {
  padding: 0;
}
.schools-page .schools-info__text-body.is-truncated {
  max-height: 180px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.35s ease;
}
.schools-page .schools-info__text-body.is-truncated:after {
  content: '';
  height: 46px;
  width: 100%;
  bottom: 0;
  left: 0;
  position: absolute;
  background: linear-gradient(0deg, #F6F9FC 20%, transparent 80%);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.schools-page .schools-info__text-body.is-truncated.expanded:after {
  opacity: 0;
}
.schools-page .schools-info__more {
  margin: 8px 0 0;
}
.schools-page .schools-variants {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  row-gap: 60px;
  margin: 88px;
  padding: 0;
}
.schools-page .schools-variants__item {
  position: relative;
  width: 328px;
  height: 499px;
  cursor: pointer;
}
.schools-page .schools-variants__item img {
  height: 204px;
  object-fit: cover;
}
.schools-page .schools-variants__item .item__content {
  padding: 16px 30px 0;
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
  flex: 1;
}
.schools-page .schools-variants__item .item__header {
  display: flex;
  height: 58px;
  margin: 0;
  align-items: center;
}
.schools-page .schools-variants__item .item__text {
  margin: 0;
  height: 100px;
  overflow: hidden;
}
/* Footer — отдельный блок внизу карточки, отделён линией */
.schools-page .schools-variants__item .item__footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  height: 108px;
  border-top: 1px solid #D1D9EB;
  flex-shrink: 0;
}
/* Гео-метка внутри footer */
.schools-page .schools-variants__item .item__geo {
  padding-left: 21px;
  position: relative;
  color: inherit;
  text-decoration: none;
}
.schools-page .schools-variants__item .item__geo:before {
  content: " ";
  width: 21px;
  height: 18px;
  position: absolute;
  top: 3px;
  left: 0;
  background: url("/images/location/geo.svg") center center no-repeat;
}
/* Нижняя строка футера: возраст + цена */
.schools-page .schools-variants__item .item__footer__bottom {
  display: flex;
  flex-flow: row nowrap;
}
.schools-page .schools-variants__item .item__footer__bottom .footer__item {
  width: 50%;
  padding-left: 21px;
  position: relative;
  color: #38596A;
}
.schools-page .schools-variants__item .item__footer__bottom .footer__item:before {
  content: " ";
  width: 21px;
  height: 18px;
  position: absolute;
  top: 3px;
  left: 0;
}
.schools-page .schools-variants__item .item__age:before {
  background: url("/images/location/age.svg") center center no-repeat;
}
.schools-page .schools-variants__item .item__price:before {
  background: url("/images/location/price.svg") center center no-repeat;
}
/* ── Event card (exhibition children rendered by V1/Destination/EventCard) ── */
.schools-page .schools-variants__item.event-card {
  height: 440px;
}
.schools-page .schools-variants__item .event-card__card {
  display: flex;
  flex-direction: column;
}
.schools-page .schools-variants__item .event-card__date {
  flex-shrink: 0;
  background: #E54F47;
  padding: 18px 0;
  text-align: center;
}
.schools-page .schools-variants__item .event-card__day {
  font-family: Geologica;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.92px;
  color: #FFFFFF;
  margin: 0;
}
.schools-page .schools-variants__item .event-card__month {
  font-family: Geologica;
  font-weight: 600;
  font-size: 14px;
  line-height: 15.56px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin: 4px 0 0;
}
.schools-page .schools-variants__item .event-card__content {
  padding-top: 20px;
  min-height: 0;
}
.schools-page .schools-variants__item .event-card__content .item__header {
  display: -webkit-box;
  height: auto;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}
.schools-page .schools-variants__item .event-card__content .item__text {
  height: auto;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.schools-page .schools-variants__item .event-card__location {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 27px;
  padding: 0 12px;
  border-radius: 8px;
  background: #FF9901;
  font-family: Geologica;
  font-weight: 500;
  font-size: 14px;
  line-height: 23px;
  letter-spacing: -0.2px;
  color: #FFFFFF;
  white-space: nowrap;
  margin: 0;
}
.schools-page .schools-variants__item .event-card__location:before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 14px;
  background-color: #FFFFFF;
  -webkit-mask: url("/images/html/pin.svg") no-repeat center / contain;
  mask: url("/images/html/pin.svg") no-repeat center / contain;
  margin-right: 6px;
}
.schools-page .schools-variants__item .event-card__footer {
  flex-shrink: 0;
  padding: 16px 30px 24px;
}
.schools-page .schools-variants__item .event-card__button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 131, 218, 1);
  border-radius: 12px;
  color: rgba(255, 255, 255, 1) !important;
  padding: 12px 20px;
  font-family: Geologica;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.schools-page .schools-variants__item .event-card__button:hover {
  background-color: #ef6860 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(239, 104, 96, 0.3);
}
.schools-page .schools-brands {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  row-gap: 30px;
  margin: 88px;
  padding: 0;
}
.schools-page .schools-brands__item {
  position: relative;
  width: 542px;
  height: 133px;
}
.schools-page .schools-brands__item > div {
  display: flex;
  flex-flow: row nowrap;
  padding: 30px;
  gap: 30px;
  justify-content: space-between;
}
.schools-page .schools-brands__item > div img {
  max-width: 70px;
  max-height: 70px;
}
.schools-page .schools-brands__item .item__content {
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
  width: 100%;
}
.schools-page .schools-brands__item .item__header {
  color: #073248;
  margin: 0;
}
.schools-page .schools-brands__item .item__text {
  height: 40px;
  margin: 0;
  color: #073248;
}
.schools-page .schools-brands__item .item__arrow {
  width: 14px;
  background: url("/images/location/arrow.svg") center center no-repeat;
  cursor: pointer;
}
@media (max-width: 1105px) {
  .schools-page {
    margin: 20px auto;
  }
  .schools-page .schools-info {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 10px;
  }
  .schools-page .schools-info__image {
    grid-row: span 1;
    box-shadow: 0px -45px 16px -10px #F6F9FC inset;
  }
  .schools-page .schools-info__image img {
    z-index: -1;
    box-shadow: none;
  }
  .schools-page .schools-variants {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 60px;
    margin: 20px 0;
  }
  .schools-page .schools-variants__item {
    width: 100%;
  }
  .schools-page .schools-brands {
    grid-template-columns: repeat(1, 1fr);
    margin: 20px 0;
  }
  .schools-page .schools-brands__item {
    width: 100%;
  }
}

/* ── School Map Modal ── */
.school-map-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}
.school-map-modal.is-open {
  display: flex;
}
.school-map-modal__wrapper {
  position: relative;
  width: calc(100% - 192px);
  max-width: 1248px;
}
.school-map-modal__close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 42px;
  height: 42px;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.school-map-modal__close:hover {
  background: #f0f4f8;
}
.school-map-modal__content {
  display: flex;
  flex-flow: row nowrap;
  height: 708px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
/* Left card panel */
.school-map-modal__card {
  width: 328px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.school-map-modal__card-img {
  width: 328px;
  height: 204px;
  object-fit: cover;
  flex-shrink: 0;
}
.school-map-modal__card-body {
  padding: 16px 30px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}
.school-map-modal__card-name {
  margin: 0;
  height: 58px;
  display: flex;
  align-items: center;
  font-size: 16px;
  color: #073248;
}
.school-map-modal__card-text {
  margin: 0;
  overflow: hidden;
}
.school-map-modal__card-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 30px;
  height: 108px;
  border-top: 1px solid #D1D9EB;
  flex-shrink: 0;
}
.school-map-modal__card-footer .item__footer__bottom {
  display: flex;
  flex-flow: row nowrap;
}
.school-map-modal__card-footer .footer__item {
  width: 50%;
  padding-left: 21px;
  position: relative;
  color: #38596A;
  font-size: 14px;
}
.school-map-modal__card-footer .footer__item:before {
  content: " ";
  width: 21px;
  height: 18px;
  position: absolute;
  top: 3px;
  left: 0;
}
.school-map-modal__card-footer .item__age:before {
  background: url("/images/location/age.svg") center center no-repeat;
}
.school-map-modal__card-footer .item__price:before {
  background: url("/images/location/price.svg") center center no-repeat;
}
/* Map area */
.school-map-modal__map {
  flex: 1;
  position: relative;
}
.school-map-modal__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
/* Mobile */
@media (max-width: 1105px) {
  .school-map-modal__wrapper {
    width: 100%;
    height: 100%;
  }
  .school-map-modal__close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10000;
  }
  .school-map-modal__content {
    flex-direction: column;
    height: 100%;
    border-radius: 0;
  }
  .school-map-modal__card {
    width: 100%;
    flex-direction: row;
    height: auto;
    flex-shrink: 0;
    border-bottom: 1px solid #D1D9EB;
  }
  .school-map-modal__card-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }
  .school-map-modal__card-body {
    padding: 10px 14px;
    gap: 4px;
  }
  .school-map-modal__card-name {
    height: auto;
    font-size: 14px;
  }
  .school-map-modal__card-text,
  .school-map-modal__card-footer {
    display: none;
  }
  .school-map-modal__map {
    flex: 1;
    min-height: 0;
  }
}

/*# sourceMappingURL=location.css.map */
