/* ZooVip list pages — services, courses, news, masters */

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 36px 24px 28px;
  border: 1px solid #e8e4dc;
  background: linear-gradient(180deg, #fbf9f5 0%, #fff 55%);
  color: #252525;
  text-decoration: none !important;
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease;
}

.service-card:hover,
.service-card:focus {
  border-color: transparent;
  box-shadow: 0 2px 40px 8px rgba(15, 15, 15, .12);
  transform: translateY(-3px);
  color: #252525;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(188, 168, 88, .12);
}

.service-card__icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.service-card__title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: #252525;
  transition: color .3s ease;
}

.service-card:hover .service-card__title {
  color: #bca858;
}

.service-card__desc {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: #777;
  margin-bottom: 16px;
}

.service-card__more {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #bca858;
  font-weight: 600;
}

/* Courses */
.course-card {
  position: relative;
  height: 100%;
  border: 1px solid #e8e4dc;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .35s ease, border-color .35s ease;
}

.course-card:hover {
  box-shadow: 0 2px 40px 8px rgba(15, 15, 15, .12);
  border-color: transparent;
}

.course-card__media {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: #f3f0ea;
}

.course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .35s ease, transform .35s ease;
}

.course-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(188, 168, 88, .25), transparent 55%),
    linear-gradient(135deg, #ebe6dc, #f7f4ee);
}

.course-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.course-card__badge--open {
  background: #bca858;
  color: #fff;
}

.course-card__badge--done {
  background: #6f6f6f;
  color: #fff;
}

.course-card__body {
  padding: 22px 22px 26px;
}

.course-card__date {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

.course-card__title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.35;
  color: #252525;
  margin-bottom: 10px;
  text-decoration: none !important;
}

.course-card__title:hover {
  color: #bca858;
}

.course-card__excerpt,
.course-card__meta {
  font-size: 14px;
  line-height: 1.55;
  color: #666;
  margin-bottom: 8px;
}

.course-card__price {
  margin: 12px 0 0;
  font-weight: 700;
  color: #252525;
}

.course-card--open {
  border-color: rgba(188, 168, 88, .55);
  box-shadow: 0 0 0 1px rgba(188, 168, 88, .15);
}

.course-card--done .course-card__media img {
  filter: grayscale(100%);
}

.course-card--done .course-card__title {
  color: #9a9a9a;
}

.course-card--done .course-card__date,
.course-card--done .course-card__meta {
  color: #b0b0b0;
}

.course-card--done:hover .course-card__media img {
  filter: grayscale(40%);
}

.course-empty {
  padding: 28px 20px 50px;
  color: #777;
}

.course-list--finished {
  background: linear-gradient(180deg, #faf9f7 0%, #fff 40%);
  padding-bottom: 40px;
}

/* Past courses: cream rounded cards with clear row gaps */
.course-list--finished .course-list__grid {
  row-gap: 28px;
}

.course-list--finished .course-card--done {
  margin-bottom: 0;
  border: none;
  border-radius: 18px;
  background: #f7f4ee;
  overflow: hidden;
  box-shadow: none;
}

.course-list--finished .course-card--done:hover {
  box-shadow: 0 10px 30px rgba(15, 15, 15, .1);
  border-color: transparent;
}

.course-list--finished .course-card--done .course-card__body {
  padding: 20px 22px 24px;
}

.course-list--finished .course-card--done .course-card__media {
  background: #ebe6dc;
}

/* Courses pagination */
.course-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 36px 0 12px;
  padding: 0 8px;
}

.course-pager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-pager__navs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.course-pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e8e4dc;
  border-radius: 999px;
  background: #fff;
  color: #252525;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.course-pager__page:hover,
.course-pager__page:focus {
  border-color: rgba(188, 168, 88, .55);
  color: #bca858;
  box-shadow: 0 2px 12px rgba(188, 168, 88, .18);
}

.course-pager__page--active {
  border-color: #bca858;
  background: #bca858;
  color: #fff;
  cursor: default;
  box-shadow: 0 4px 14px rgba(188, 168, 88, .28);
}

.course-pager__page--active:hover,
.course-pager__page--active:focus {
  border-color: #bca858;
  background: #bca858;
  color: #fff;
  box-shadow: 0 4px 14px rgba(188, 168, 88, .28);
}

.course-pager__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid #e8e4dc;
  border-radius: 999px;
  background: #f7f4ee;
  color: #252525;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.course-pager__nav:hover,
.course-pager__nav:focus {
  border-color: rgba(188, 168, 88, .55);
  background: #fff;
  color: #bca858;
}

.course-pager__nav--disabled {
  border-color: transparent;
  background: transparent;
  color: #b0b0b0;
  cursor: default;
  pointer-events: none;
}

/* News */
.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card__media {
  display: block;
  height: 220px;
  overflow: hidden;
  background: #f3f0ea;
  margin-bottom: 18px;
}

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

.news-card:hover .news-card__media img {
  transform: scale(1.04);
}

.news-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ebe6dc, #f7f4ee);
}

.news-card__title {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  line-height: 1.35;
  color: #252525;
  margin-bottom: 10px;
  text-decoration: none !important;
}

.news-card__title:hover {
  color: #bca858;
}

.news-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: #777;
  margin: 0;
}

/* Masters */
.team-member-img {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f3f0ea;
}

.team-member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-member-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 260px;
  font-family: "Playfair Display", serif;
  font-size: 64px;
  color: #bca858;
  background: linear-gradient(160deg, #f7f4ee, #ebe6dc);
}

.single-team-member a {
  text-decoration: none !important;
}

.master-detail__photo {
  overflow: hidden;
  border: 1px solid #e8e4dc;
  background: #f3f0ea;
}

.master-detail__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.master-detail__status {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #bca858;
  font-weight: 600;
}

.master-detail__name {
  margin-bottom: 20px;
}

.master-detail__text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

.master-detail__text p {
  margin-bottom: 1em;
}

/* GOST / course program block (#gost_info) */
.gost-program {
  --gp-cream: #f7f4ee;
  --gp-cream-deep: #efe9df;
  --gp-gold: #bca858;
  --gp-ink: #252525;
  --gp-muted: #666;
  --gp-line: #e8e4dc;
}

.gost-program__panel {
  margin-top: 28px;
  margin-bottom: 12px;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: var(--gp-cream);
  overflow: hidden;
}

.gost-program__title {
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gp-ink);
}

.gost-program__days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gost-program__day {
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--gp-line);
}

.gost-program__day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gost-program__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gp-gold);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.gost-program__day-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gp-ink);
}

.gost-program__parts {
  padding-left: 44px;
}

.gost-program__parts p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gp-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.gost-program__parts p:last-child {
  margin-bottom: 0;
}

.gost-program__parts strong {
  color: var(--gp-ink);
  font-weight: 700;
}

@media (max-width: 767px) {
  .service-card {
    padding: 28px 18px 22px;
  }

  .course-card__media,
  .news-card__media {
    height: 190px;
  }

  .course-list--finished .course-list__grid {
    row-gap: 20px;
  }

  .course-pager {
    gap: 12px;
    margin-top: 28px;
  }

  .course-pager__page {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
  }

  .course-pager__nav {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .gost-program__panel {
    padding: 24px 16px 20px;
    border-radius: 18px;
  }

  .gost-program__title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .gost-program__day {
    padding: 16px 14px 14px;
  }

  .gost-program__parts {
    padding-left: 0;
  }

  .gost-program__parts p {
    font-size: 14px;
  }
}
