/* ===== COURSE PAGE STYLES ===== */

/* COURSE HERO */
.course-hero {
  background: var(--blush);
  padding-top: 80px;
}
.course-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 80px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.course-back {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  font-size: 13px;
  color: var(--earth-md);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.course-back:hover { color: var(--rose); }
.course-hero-content > .tag {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
  line-height: 1.5;
}
.course-hero-content > .tag::before { flex: 0 0 20px; }
.course-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--earth);
  margin-bottom: 20px;
}
.course-hero-title em { font-style: italic; color: var(--rose); }
.course-hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--earth-md);
  line-height: 1.8;
  max-width: 460px;
  margin-bottom: 36px;
}
.course-hero-stats {
  display: flex;
  gap: 36px;
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.course-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--rose);
  line-height: 1;
}
.course-stat-label {
  font-size: 13px;
  color: var(--earth-lt);
  margin-top: 4px;
}
.course-hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.course-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.course-hero-badge {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
}
.course-badge-icon { font-size: 22px; }
.course-badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--earth);
}

/* SECTION INNER */
.course-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 80px;
}

/* AUDIENCE */
.course-audience { background: var(--white); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.audience-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.25s;
}
.audience-card:hover {
  border-color: var(--rose-lt);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
}
.audience-icon { font-size: 28px; margin-bottom: 12px; }
.audience-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--earth);
  margin-bottom: 8px;
}
.audience-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--earth-md);
  line-height: 1.6;
}

/* GOALS */
.course-goals { background: var(--blush); }
.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.goal-card {
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all 0.25s;
}
.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
}
.goal-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: rgba(74,42,56,0.06);
  line-height: 1;
  margin-bottom: -4px;
}
.goal-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--earth);
  margin-bottom: 8px;
}
.goal-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--earth-md);
  line-height: 1.65;
}

/* PROGRAM */
.course-program { background: var(--white); }
.course-program-note {
  font-size: 14px;
  font-weight: 300;
  color: var(--earth-md);
  line-height: 1.7;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* WEEK ACCORDION */
.week-accordion {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.week-item {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.week-item:hover { border-color: var(--rose-lt); }
.week-item--locked {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.week-item--locked .week-lessons-count {
  font-weight: 500;
  color: var(--earth-md);
}
.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 28px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.week-header:focus-visible { outline: 3px solid var(--rose-dk); outline-offset: -3px; }
.week-info { display: flex; align-items: center; gap: 16px; }
.week-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--earth);
}
.week-focus {
  font-size: 14px;
  color: var(--earth-md);
  font-weight: 300;
}
.week-meta { display: flex; align-items: center; gap: 16px; }
.week-lessons-count {
  font-size: 12px;
  color: var(--rose);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.week-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--rose);
  transition: all 0.2s;
}
.week-item.open .week-toggle {
  background: var(--rose);
  color: white;
  transform: rotate(45deg);
  border-color: var(--rose);
}
.week-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.week-item.open .week-body {
  max-height: 1000px;
}

/* BONUS LESSONS */
.bonus-lessons {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--cream);
}
.bonus-lessons-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: baseline;
  margin-bottom: 20px;
}
.bonus-lessons h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--earth);
}
.bonus-lessons h3 em { color: var(--rose); }
.bonus-lessons-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--earth-md);
  font-size: 14px;
  line-height: 1.6;
}
.bonus-lessons-list { border-top: 1px solid var(--border); }
.bonus-lesson-public {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.bonus-lesson-public:last-child { padding-bottom: 0; border-bottom: 0; }
.bonus-lesson-label {
  align-self: start;
  color: var(--rose);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bonus-lesson-public h4 {
  margin: 0;
  color: var(--earth);
  font-size: 16px;
  font-weight: 500;
}
.bonus-lesson-public p {
  margin: 5px 0 0;
  color: var(--earth-md);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

/* DAY ROWS */
.day-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 28px;
  gap: 16px;
  border-top: 1px solid rgba(234,216,220,0.5);
}
.day-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--earth);
  min-width: 110px;
  flex-shrink: 0;
}
.day-content {
  font-size: 14px;
  font-weight: 300;
  color: var(--earth-md);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.day-practice .day-content {
  color: var(--earth-lt);
  font-style: italic;
}
.lesson-badge {
  display: inline-block;
  background: var(--rose);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  font-style: normal;
  text-decoration: none;
}
.lesson-badge:hover { color: white; }
.lesson-conditional {
  background: var(--sage);
}
.lesson-dur {
  font-size: 12px;
  color: var(--earth-lt);
  font-style: normal;
}
.lesson-note {
  font-size: 11px;
  color: var(--sage-dk);
  font-weight: 400;
  font-style: italic;
  width: 100%;
}

/* EQUIPMENT */
.course-equipment { background: var(--blush); }
.equipment-note {
  font-size: 14px;
  font-weight: 300;
  color: var(--earth-md);
  margin-top: 8px;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.equipment-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.equipment-card:hover {
  border-color: var(--rose-lt);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
}
.equipment-icon { font-size: 32px; margin-bottom: 12px; }
.equipment-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--earth);
  margin-bottom: 8px;
}
.equipment-link {
  font-size: 12px;
  color: var(--rose);
  font-weight: 400;
}

/* IMPORTANT */
.course-important { background: var(--cream); }
.important-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.important-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: all 0.25s;
}
.important-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
}
.important-icon { font-size: 28px; margin-bottom: 14px; }
.important-card h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--earth);
  margin-bottom: 8px;
}
.important-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--earth-md);
  line-height: 1.65;
}

/* TRAINER BRIEF */
.course-trainer { background: var(--white); }
.trainer-brief {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.trainer-brief-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.trainer-brief-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.trainer-brief-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--earth-md);
  line-height: 1.8;
  margin-top: 16px;
}
.trainer-brief-creds {
  list-style: none;
  margin-top: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trainer-brief-creds li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--earth-md);
  font-weight: 300;
  line-height: 1.5;
}

/* BUY */
.course-buy { background: var(--earth); }
.course-buy .tag { color: var(--rose-lt); }
.course-buy .tag::before { background: var(--rose-lt); }
.course-buy .section-title { color: var(--cream); }
.buy-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.buy-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
  margin-top: 24px;
}
.buy-access {
  font-size: 14px;
  color: rgba(253,248,245,0.5);
  margin-top: 6px;
  margin-bottom: 32px;
}
.buy-includes {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.buy-includes li {
  font-size: 15px;
  font-weight: 300;
  color: rgba(253,248,245,0.75);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}
.buy-includes li::before {
  content: '✓';
  color: var(--sage);
  font-weight: 600;
  flex-shrink: 0;
}
.buy-btn {
  width: 100%;
  text-align: center;
  padding: 18px 36px;
  font-size: 16px;
}
.buy-note {
  font-size: 12px;
  color: rgba(253,248,245,0.3);
  margin-top: 14px;
}

/* Выбор тарифа «Прогрессия в зале» */
.gym-buy-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.gym-buy-head p {
  max-width: 680px;
  margin: 12px auto 0;
  color: rgba(253,248,245,0.68);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}
.gym-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  gap: 24px;
}
.gym-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 590px;
  padding: 36px;
  border: 1px solid rgba(253,248,245,0.18);
  border-radius: 16px;
  background: rgba(253,248,245,0.04);
  color: var(--cream);
}
.gym-plan--featured {
  border: 0;
  background: var(--cream);
  color: var(--earth);
  box-shadow: 0 28px 70px rgba(18,6,11,0.3);
  transform: translateY(-10px);
}
.gym-plan-label {
  margin-bottom: 18px;
  color: var(--rose-lt);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gym-plan--featured .gym-plan-label { color: var(--rose-dk); }
.gym-plan h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.05;
}
.gym-plan-price {
  margin: 28px 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gym-plan-access {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(253,248,245,0.14);
  color: rgba(253,248,245,0.68);
  font-size: 13px;
}
.gym-plan--featured .gym-plan-access {
  border-color: var(--border);
  color: var(--earth-lt);
}
.gym-support-note {
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(253,248,245,0.14);
  color: rgba(253,248,245,0.82);
  font-size: 13px;
  line-height: 1.55;
}
.gym-support-note strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 14px;
}
.gym-plan--featured .gym-support-note {
  border-color: var(--border);
  color: var(--earth-md);
}
.gym-plan--featured .gym-support-note strong { color: var(--earth); }
.gym-plan ul {
  display: grid;
  flex: 1;
  gap: 11px;
  margin: 24px 0 30px;
  list-style: none;
}
.gym-plan li {
  position: relative;
  padding-left: 22px;
  color: rgba(253,248,245,0.78);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}
.gym-plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rose-lt);
  font-weight: 600;
}
.gym-plan--featured li { color: var(--earth-md); }
.gym-plan--featured li::before { color: var(--rose); }
.gym-recommend {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 7px 11px;
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gym-plan-button {
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 100px;
  background: var(--rose);
  color: #fff;
  cursor: pointer;
  font: 500 14px 'Jost', sans-serif;
  transition: transform 0.2s ease, background 0.2s ease;
}
.gym-plan-button:hover {
  background: var(--rose-dk);
  transform: translateY(-2px);
}
.gym-plan--featured .gym-plan-button { background: var(--earth); }
.gym-plan--featured .gym-plan-button:hover { background: var(--rose-dk); }
.gym-plan-button[aria-pressed="true"] {
  outline: 3px solid rgba(200,112,144,0.42);
  outline-offset: 4px;
}
.gym-plan-result {
  max-width: 620px;
  margin: 32px auto 0;
  padding: 30px;
  border: 1px solid rgba(253,248,245,0.18);
  border-radius: 18px;
  background: rgba(253,248,245,0.07);
  color: var(--cream);
  text-align: center;
}
.gym-plan-result[hidden] { display: none; }
.gym-result-status {
  margin: 0 0 8px;
  color: var(--rose-lt);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gym-plan-result > h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 500;
}
.gym-result-copy {
  max-width: 500px;
  margin: 10px auto 0;
  color: rgba(253,248,245,0.7);
  font-size: 13px;
  line-height: 1.6;
}
.gym-plan-result .pay-form { text-align: left; }

/* ── Форма оплаты ЮКасса ── */
.pay-form {
  margin-top: 28px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(253,248,245,0.2);
  border-radius: 16px;
  padding: 24px;
}

.pay-field { margin-bottom: 16px; text-align: left; }

.pay-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,248,245,0.9);
  margin-bottom: 8px;
}

.pay-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(253,248,245,0.4);
  border-radius: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  color: #fdf8f5;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background 0.2s;
}
.pay-input::placeholder { color: rgba(253,248,245,0.45); }
.pay-input:focus {
  border-color: var(--rose);
  background: rgba(0,0,0,0.3);
}
/* Перебиваем iOS autofill-белый фон */
.pay-input:-webkit-autofill,
.pay-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #3a1a28 inset;
  -webkit-text-fill-color: #fdf8f5;
}

.pay-hint {
  display: block;
  font-size: 12px;
  color: rgba(253,248,245,0.65);
  margin-top: 7px;
  line-height: 1.5;
}

.pay-promo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.pay-promo-hint {
  color: rgba(253,248,245,0.62);
}

.pay-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(253,248,245,0.18);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.pay-consent:hover { background: rgba(0,0,0,0.22); border-color: rgba(253,248,245,0.28); }
/* Скрываем нативный чекбокс доступно */
.pay-consent input[type="checkbox"] {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
/* Кастомный квадрат */
.pay-check-icon {
  width: 22px; height: 22px; min-width: 22px;
  border: 2px solid rgba(253,248,245,0.5);
  border-radius: 6px;
  background: rgba(0,0,0,0.25);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px; flex-shrink: 0;
  transition: background 0.18s, border-color 0.18s;
}
.pay-check-icon svg { display: none; }
.pay-consent input:checked ~ .pay-check-icon {
  background: var(--rose);
  border-color: var(--rose);
}
.pay-consent input:checked ~ .pay-check-icon svg { display: block; }
/* Состояние ошибки */
.pay-consent.error { border-color: rgba(220,60,60,0.6); background: rgba(220,60,60,0.08); }
.pay-consent.error .pay-check-icon { border-color: rgba(220,60,60,0.7); }

.pay-consent span.pay-consent-text {
  font-size: 13px;
  color: rgba(253,248,245,0.8);
  line-height: 1.6;
  text-align: left;
}
.pay-consent span.pay-consent-text a {
  color: var(--rose-lt);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-btn {
  width: 100%;
  text-align: center;
  padding: 18px 36px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.pay-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.pay-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pay-error {
  margin-top: 12px;
  padding: 12px 16px;
  background: rgba(220,60,60,0.15);
  border: 1px solid rgba(220,60,60,0.3);
  border-radius: 8px;
  font-size: 13px;
  color: #ffb4b4;
  text-align: left;
  line-height: 1.5;
}

.pay-secure {
  font-size: 12px;
  color: rgba(253,248,245,0.6);
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .course-hero-inner {
    grid-template-columns: 1fr;
    padding: 60px 40px 80px;
    gap: 48px;
  }
  .course-hero-visual {
    order: -1;
    max-height: 400px;
  }
  .course-section-inner { padding: 80px 40px; }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .goals-grid { grid-template-columns: repeat(2, 1fr); }
  .equipment-grid { grid-template-columns: repeat(3, 1fr); }
  .important-grid { grid-template-columns: repeat(2, 1fr); }
  .trainer-brief {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .trainer-brief-photo {
    max-width: 360px;
    margin: 0 auto;
  }
  .gym-plan--featured { transform: none; }
}

@media (max-width: 640px) {
  .course-hero-inner { padding: 48px 24px 60px; }
  .course-hero-stats { gap: 24px; }
  .course-section-inner { padding: 60px 24px; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr 1fr; }
  .important-grid { grid-template-columns: 1fr; }
  .week-header { padding: 16px 20px; }
  .week-info { flex-direction: column; align-items: flex-start; gap: 4px; }
  .day-row { padding: 10px 20px; flex-direction: column; gap: 4px; }
  .day-name { min-width: auto; }
  .bonus-lessons { padding: 22px 18px; }
  .bonus-lessons-heading { display: block; margin-bottom: 16px; }
  .bonus-lessons-heading p { margin-top: 8px; }
  .bonus-lesson-public { grid-template-columns: 1fr; gap: 7px; }
  .buy-price { font-size: 44px; }
  .gym-buy-head { margin-bottom: 34px; text-align: left; }
  .gym-plans { grid-template-columns: 1fr; }
  .gym-plan { min-height: auto; padding: 30px 28px; }
  .gym-recommend { top: 20px; right: 20px; }
  .gym-plan-result { padding: 24px 18px; }
}

/* ===== STICKY BUY BAR ===== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--earth);
  border-top: 1px solid rgba(253,248,245,0.12);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-info { display: flex; align-items: baseline; gap: 20px; }
.sticky-bar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.2;
}
.sticky-bar-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--rose);
}
.sticky-bar-btn {
  flex-shrink: 0;
  padding: 12px 36px;
  font-size: 15px;
}

@media (max-width: 640px) {
  .sticky-bar { padding: 12px 20px; gap: 12px; }
  .sticky-bar-info { flex-direction: column; gap: 2px; }
  .sticky-bar-title { font-size: 15px; }
  .sticky-bar-price { font-size: 18px; }
  .sticky-bar-btn { padding: 10px 24px; font-size: 14px; }
}

/* Keep course content readable without page-wide horizontal scrolling. */
.audience-grid,.equipment-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));}
.audience-card,.course-hero-content,.course-hero-visual,.pay-field{min-width:0;}
.audience-desc,.important-card p,.pay-legal,.course2-preview-note{font-size:14px;line-height:1.65;}
.course-hero-stats{flex-wrap:wrap;}
.pay-form input:not([type=checkbox]):not([type=radio]),.pay-form select{font-size:16px;min-width:0;}
.pay-consent{min-height:44px;}
.sticky-bar-price{color:var(--rose-lt);}
@media(max-width:640px){
 .audience-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));}
 .course-hero-title{font-size:clamp(34px,8.5vw,48px);overflow-wrap:break-word;}
 .pay-promo-row{grid-template-columns:minmax(0,1fr);}
 .pay-promo-row input{width:100%;}
 .pay-promo-row button{min-height:44px;}
 .sticky-bar{padding-bottom:max(12px,env(safe-area-inset-bottom));}
 .sticky-bar-info{min-width:0;}
 .sticky-bar-btn{min-height:44px;padding-inline:18px;}
 body:has(.sticky-bar){padding-bottom:88px;}
}

/* These two legacy rules also exist inline in course HTML. */
.pay-legal{font-size:14px!important;line-height:1.65!important;}
.course2-page .course2-preview-note{font-size:14px;line-height:1.65;}

/* Public course cards: text-first, without decorative pictograms (user decision 2026-10-13). */
body.course-text-cards .audience-card,
body.course-text-cards .equipment-card {
  padding: 28px 24px;
  text-align: left;
}
body.course-text-cards .equipment-card {
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
}
body.course-text-cards .course2-contra-mark { display: block; }
body.course-text-cards .course2-contra-list li { padding-left: 0; }
body.course-text-cards .course2-contra-list li::before { content: none; }
