@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');

:root {
  --body: #181519;
  --page: #29232a;
  --surface: #342d35;
  --surface-strong: #423742;
  --line: #5c505e;
  --muted: #d8cfd5;
  --text: #fff9fb;
  --brand: #ed0f4d;
  --brand-ink: #0b0205;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--body);
  color: var(--text);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  direction: rtl;
}

.page {
  width: min(100%, 430px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 20px 18px 24px;
  overflow: hidden;
  background-color: var(--page);
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 18%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 18%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

.hero {
  text-align: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 2px;
  color: var(--text);
  direction: ltr;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.1px;
}

.hero-visual {
  display: grid;
  place-items: end center;
  height: 300px;
  margin: 0 -18px 0;
  padding: 4px 0 10px;
  overflow: clip;
}

.hero-portrait {
  width: min(82%, 330px);
  height: 279px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 18px rgb(0 0 0 / .3));
  -webkit-mask-image: linear-gradient(to bottom, #000 0 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0 75%, transparent 100%);
}

.event-pill {
  width: max-content;
  margin: 0 auto;
  padding: 5px 10px 6px;
  border-radius: 2px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 11px;
  font-weight: 700;
}

h1 {
  margin: 15px 0 14px;
  font-size: clamp(42px, 12vw, 53px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 900;
  text-shadow: 3px 3px 0 var(--brand), 6px 6px 0 var(--body);
  animation: title-echo 2.8s ease-in-out infinite;
}

@keyframes title-echo {
  0%, 100% {
    text-shadow: 3px 3px 0 var(--brand), 6px 6px 0 var(--body);
  }

  50% {
    text-shadow: 6px 6px 0 var(--brand), 10px 10px 0 var(--body);
  }
}

h1 span {
  color: var(--brand);
}

.intro-copy {
  display: grid;
  gap: 9px;
  max-width: 340px;
  margin: 3px auto 0;
  padding: 10px 0;
  border-block: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

.intro img,
.schedule-note img,
.session time img,
.bio li img {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.free-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--brand);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.section {
  margin-top: 38px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.section-heading span {
  height: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--line) 72%, transparent);
}

.section-heading h2 {
  flex: none;
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
}

.schedule-card {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.schedule-note {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 3px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.sessions {
  display: grid;
}

.session {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  column-gap: 9px;
  min-height: 53px;
  border-top: 1px solid color-mix(in srgb, var(--line) 64%, transparent);
  text-align: right;
}

.session.active {
  border-color: var(--brand);
}

.session-number {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 2px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  direction: ltr;
}

.session.active .session-number {
  background: var(--brand);
  color: var(--brand-ink);
}

.session h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.session p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.session time {
  display: flex;
  grid-column: 3;
  grid-row: 1 / 3;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.session time img {
  width: 13px;
  height: 13px;
}

.registration {
  margin-top: 35px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 17px 0 14px;
  direction: ltr;
}

.price-row strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.price-row del {
  color: var(--muted);
  font-size: 13px;
}

.form-container {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

form {
  display: grid;
  gap: 10px;
}

input,
button {
  width: 100%;
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
}

input {
  padding: 0 14px;
  outline: 0;
  background: var(--page);
  color: var(--text);
  text-align: right;
  font-size: 13px;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1px;
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 4px 4px 0 var(--body);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

button img {
  width: 16px;
  height: 16px;
}

.button-label {
  display: inline-block;
  animation: button-label 2s ease-in-out infinite;
}

@keyframes button-label {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.instructor {
  margin-top: 40px;
}

.instructor-info {
  display: flex;
  align-items: center;
  gap: 14px;
  direction: rtl;
  margin: 18px 0 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
}

.portrait {
  flex: 0 0 84px;
  height: 84px;
  border: 1px solid color-mix(in srgb, var(--brand) 65%, var(--line));
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
}

.bio {
  direction: rtl;
  flex: 1;
  text-align: right;
}

.bio h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}

.bio .role {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
}

.bio ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.bio li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.bio li img {
  width: 12px;
  height: 12px;
  margin-top: 2px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  direction: ltr;
}

.footer small {
  color: var(--muted);
  font-size: 8px;
}

.footer span {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  h1,
  .button-label {
    animation: none;
  }
}
