/* Characters form the card background; the copy keeps an opaque reading area. */
.tariff-grid .course-card {
  --card-paper: #fffcf9;
  isolation: isolate;
  overflow: hidden;
  background: var(--card-paper);
}
.tariff-grid .full-course {
  --card-paper: #fff8f4;
  background: var(--card-paper);
}
.course-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 300px;
  overflow: hidden;
  pointer-events: none;
}
.course-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right top;
}
.course-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, #fffcf922 55%, var(--card-paper) 92%),
    linear-gradient(100deg, #fffcf94d, transparent 36%);
}
.tariff-grid .course-top {
  display: flex;
  min-height: 174px;
  align-items: flex-end;
}
.tariff-grid .course-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #fffaf5e8;
  border-color: #fffaf4;
  box-shadow: 0 4px 18px #76524812, inset 0 1px 1px #fff;
}
.tariff-grid .course-icon > .icon {
  width: 25px;
  height: 25px;
}
.tariff-grid h3 {
  position: relative;
  margin-top: 22px;
  text-shadow: 0 1px 15px var(--card-paper);
}
.tariff-grid .check-list {
  color: #765969;
}
.tariff-grid .course-gift {
  color: #a25474;
}
.course-gift strong {
  font-size: .85em;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .course-art { height: 220px; }
  .tariff-grid .course-top { min-height: 137px; }
  .tariff-grid .course-icon { width: 43px; height: 43px; }
}
@media (max-width: 760px) {
  .tariff-grid .course-top { min-height: 172px; }
  .tariff-grid h3 { margin-top: 22px; }
}
@media (max-width: 360px) {
  .course-art { height: 260px; }
  .tariff-grid .course-top { min-height: 140px; }
  .tariff-grid .course-icon { width: 43px; height: 43px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .course-art img {
    transition: transform 900ms cubic-bezier(.2,.7,.3,1);
    transform-origin: 65% 35%;
  }
  .course-card:hover .course-art img { transform: scale(1.035); }
}
