.ev-public { padding-block: 2.2rem; overflow-x: clip; max-width: 100%; }
.ev-public .ev-wrap,
.ev-wrap {
  width: min(1200px, calc(100% - 2rem));
  max-width: 1200px;
  margin-inline: auto;
  min-width: 0;
}
.ev-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.ev-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  min-width: 0;
  max-width: 100%;
}
.ev-card__top {
  display: grid;
  grid-template-columns: minmax(0, var(--ev-media-span, 40%)) minmax(0, 1fr);
  gap: var(--ev-media-gap, 1.5rem);
  align-items: var(--ev-media-align, center);
  padding: 1.25rem 1.25rem 0.4rem;
  min-width: 0;
  max-width: 100%;
}
.ev-card--no-media .ev-card__top {
  grid-template-columns: minmax(0, 1fr);
}
.ev-card__media {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #eef2ff;
  min-width: 0;
  align-self: var(--ev-media-align, center);
}
.ev-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: var(--ev-media-fit, cover);
  object-position: center;
  display: block;
}
.ev-card__copy { min-width: 0; max-width: 100%; }
.ev-card__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.55;
  color: #0f172a;
  font-weight: 800;
}
.ev-card__teacher {
  margin: 0 0 0.7rem;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.95rem;
}
.ev-card__desc {
  margin: 0;
  color: #475569;
  line-height: var(--ev-text-leading, 2);
  font-size: 1rem;
  max-width: 100%;
  min-width: 0;
}
.ev-prose,
.ev-prose * { font-family: inherit; }
.ev-prose {
  direction: rtl;
  text-align: start;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  min-width: 0;
}
.ev-prose p {
  margin: 0 0 0.75rem;
  line-height: 2;
}
.ev-card .ev-prose p,
.ev-card .ev-prose li {
  line-height: var(--ev-text-leading, 2);
}
.ev-card .ev-prose p {
  margin: 0 0 var(--ev-p-gap, 0.75rem);
}
.ev-prose p:last-child { margin-bottom: 0; }
.ev-prose h2 {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  font-weight: 800;
  color: #0f172a;
}
.ev-prose h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.6;
  font-weight: 800;
  color: #0f172a;
}
.ev-prose ul,
.ev-prose ol {
  margin: 0.45rem 0 0.8rem;
  padding-inline-start: 1.35rem;
}
.ev-prose li {
  margin: 0.22rem 0;
  line-height: 1.85;
}
.ev-prose blockquote {
  margin: 0.7rem 0;
  padding: 0.45rem 0.8rem;
  border-inline-start: 3px solid #93c5fd;
  background: #f8fafc;
  color: #334155;
}
.ev-prose a { color: #1d4ed8; text-decoration: underline; }
.ev-prose .ev-text-sm { font-size: 0.875rem; }
.ev-prose .ev-text-lg { font-size: 1.2rem; }
.ev-card__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) minmax(220px, 280px);
  align-items: center;
  gap: 1rem 1.25rem;
  width: 100%;
  margin-top: 0.4rem;
  padding: 1rem 1.2rem 1.15rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.ev-card__meta {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  min-width: 0;
}
.ev-card__meta div { min-width: 0; }
.ev-card__meta dt,
.ev-card__fee dt {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  margin-bottom: 0.18rem;
}
.ev-card__meta dt svg,
.ev-card__fee dt svg,
.ev-card__seats svg,
.ev-card__btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.ev-card__meta dd,
.ev-card__fee dd {
  margin: 0;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ev-card__fee {
  min-width: 0;
  padding-inline: 0.2rem;
}
.ev-card__fee dd { color: #c2410c; font-size: 1.08rem; }
.ev-card__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}
.ev-card__form { margin: 0; width: 100%; }
.ev-card__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1.15rem;
  border: 0;
  border-radius: 14px;
  background: #16A34A;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28);
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.ev-card__btn svg { width: 18px; height: 18px; transform: scaleX(-1); }
.ev-card__btn:hover:not(:disabled):not(.ev-card__btn--disabled) {
  background: #15803D;
  box-shadow: 0 10px 22px rgba(21, 128, 61, 0.32);
}
.ev-card__btn.is-loading,
.ev-card__btn.is-loading:disabled {
  background: #15803D;
  box-shadow: none;
  cursor: wait;
}
.ev-card__btn--disabled,
.ev-card__btn:disabled:not(.is-loading) {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  white-space: normal;
  text-align: center;
}
.ev-card__seats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  padding: 0.4rem 0.7rem;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
}
.ev-card__seats svg { color: #dc2626; }
.ev-card__seats strong {
  color: #dc2626;
  font-weight: 800;
}
.ev-card__trust {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
}
.ev-empty { text-align: center; color: #64748b; padding: 2rem 0; }
.ev-checkout, .ev-result {
  max-width: 720px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
.ev-checkout h1, .ev-result h1 { margin-top: 0; }
.ev-error { color: #b91c1c; background: #fef2f2; padding: 0.75rem 1rem; border-radius: 12px; }
.ev-success { color: #166534; background: #f0fdf4; padding: 0.75rem 1rem; border-radius: 12px; }
.ev-profiles { display: grid; gap: 0.6rem; margin: 1rem 0; }
.ev-profiles label {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.8rem 1rem;
}
@media (max-width: 900px) {
  .ev-card__top,
  .ev-card--no-media .ev-card__top {
    grid-template-columns: minmax(0, 1fr);
    padding: 1rem 1rem 0.2rem;
  }
  .ev-card__media { max-width: 100%; align-self: stretch; }
  .ev-card__bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .ev-card__meta { grid-template-columns: 1fr 1fr; }
  .ev-card__fee { order: 2; }
  .ev-card__cta { order: 3; }
  .ev-card__btn { width: 100%; min-width: 0; }
}
@media (max-width: 560px) {
  .ev-wrap { width: min(1200px, calc(100% - 1.2rem)); }
  .ev-card__meta { grid-template-columns: 1fr; }
  .ev-card__title { font-size: 1.2rem; }
  .ev-card__desc { font-size: 0.95rem; }
}
