@font-face {
  font-family: "SiteSans";
  src: local("Inter"), local("Arial");
  font-display: swap;
}

:root {
  --bg: #f4f3ef;
  --surface: #fbfaf7;
  --surface-2: #eceee8;
  --text: #1f2825;
  --muted: #68716d;
  --line: #d6d8d2;
  --accent: #315f54;
  --accent-dark: #24483f;
  --accent-soft: #dfe9e4;
  --blue-soft: #e4e9ee;
  --shadow: 0 18px 50px rgba(31, 40, 37, 0.10);
  --radius: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: SiteSans, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(31,40,37,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,40,37,.028) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  line-height: 1.55;
}

button, input, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  width: fit-content;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-family: SiteSans, Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.03em;
}
.brand strong,
.brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .015em; white-space: nowrap; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a,
.cabinet-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}
.main-nav a:hover,
.cabinet-link:hover { color: var(--text); }
.cabinet-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.section { padding-block: 94px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.025em; }
h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 620;
}
h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
}
h3 { font-size: 22px; }

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .65fr);
  align-items: center;
  gap: 84px;
}
.hero-text {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.button {
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 13px 18px;
  font-weight: 650;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: white;
  background: var(--accent);
  text-decoration: none;
}
.button-primary:hover { background: var(--accent-dark); }
.button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--text);
}
.button-secondary:hover { background: var(--text); color: white; }
.text-link {
  color: var(--muted);
  text-underline-offset: 5px;
}

.hero-note {
  background: rgba(251,250,247,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.hero-note-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
}
.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.facts { margin: 0; }
.facts div {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-size: 14px; font-weight: 650; }

.courses-section { border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading p:last-child { color: var(--muted); max-width: 650px; }
.section-heading-small { max-width: 700px; }

.course-list { display: grid; gap: 18px; }
.course-card {
  min-height: 300px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 290px;
  gap: 34px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.course-card-oge { box-shadow: inset 5px 0 0 #7f9e90; }
.course-card-ege { box-shadow: inset 5px 0 0 #8395a5; }
.course-index {
  padding-top: 5px;
  font-family: Georgia, serif;
  font-size: 14px;
  color: var(--muted);
}
.course-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
}
.course-main h3 {
  margin-bottom: 14px;
  font-size: 32px;
}
.course-main > p:not(.course-label) {
  max-width: 660px;
  margin-bottom: 22px;
  color: var(--muted);
}
.compact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 650;
}
.compact-list li::before {
  content: "—";
  margin-right: 7px;
  color: var(--muted);
}
.course-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.teacher-mini {
  display: flex;
  align-items: center;
  gap: 13px;
}
.teacher-mini img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(.72);
}
.teacher-mini span,
.teacher-mini strong { display: block; }
.teacher-mini span { color: var(--muted); font-size: 11px; }
.teacher-mini strong { font-size: 14px; margin-top: 3px; }

.format-section { border-top: 1px solid var(--line); }
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.format-grid article {
  min-height: 230px;
  padding: 28px 24px 30px;
  border-right: 1px solid var(--line);
}
.format-grid article:last-child { border-right: 0; }
.format-number {
  display: block;
  margin-bottom: 54px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
}
.format-grid h3 { margin-bottom: 10px; font-size: 19px; }
.format-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.cabinet-preview {
  margin-top: 50px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e9ece7;
}
.cabinet-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 22px;
}
.cabinet-caption span { color: var(--muted); font-size: 13px; }
.cabinet-caption strong { font-size: 15px; }
.lesson-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
}
.lesson-date {
  text-align: center;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}
.lesson-date strong,
.lesson-date span { display: block; }
.lesson-date strong { font-size: 23px; line-height: 1; }
.lesson-date span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.lesson-info strong,
.lesson-info span { display: block; }
.lesson-info strong { font-size: 15px; }
.lesson-info span { margin-top: 4px; color: var(--muted); font-size: 13px; }
.lesson-row button {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.cabinet-links {
  display: flex;
  gap: 9px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.cabinet-links span {
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(251,250,247,.55);
  color: var(--muted);
  font-size: 12px;
}

.contacts-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
  border-top: 1px solid var(--line);
}
.contacts-section h2 { max-width: 560px; }
.contacts-section > div > p:last-child { color: var(--muted); max-width: 500px; }
.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}
.contact-form label span { font-size: 12px; color: var(--muted); }
.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: white;
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus { border-color: var(--accent); }
.contact-form .button { width: 100%; margin-top: 6px; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; }

.site-footer {
  min-height: 110px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer > div:first-child strong,
.site-footer > div:first-child span { display: block; }
.site-footer > div:first-child strong { color: var(--text); font-size: 14px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { text-underline-offset: 4px; }

.course-dialog {
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.course-dialog::backdrop {
  background: rgba(23, 29, 27, .58);
  backdrop-filter: blur(4px);
}
.dialog-shell { position: relative; }
.dialog-close {
  position: sticky;
  float: right;
  top: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 16px 16px 0 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251,250,247,.92);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
.dialog-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding: 54px 62px 38px;
  border-bottom: 1px solid var(--line);
}
.dialog-hero h2 { margin-bottom: 14px; font-size: clamp(30px, 5vw, 48px); }
.dialog-hero p:last-child { max-width: 650px; margin-bottom: 0; color: var(--muted); }
.dialog-price {
  min-width: 160px;
  align-self: end;
  text-align: right;
}
.dialog-price span,
.dialog-price strong,
.dialog-price small { display: block; }
.dialog-price span,
.dialog-price small { color: var(--muted); font-size: 11px; }
.dialog-price strong { margin: 5px 0; font-size: 24px; }
.dialog-content { padding: 0 62px 62px; }
.teacher-section {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 46px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}
.teacher-section img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  filter: saturate(.82) contrast(.98);
}
.teacher-section h3 { margin-bottom: 12px; font-size: 28px; }
.teacher-section > div > p:not(.eyebrow) { color: var(--muted); }
.achievement-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.achievement-list li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
}
.achievement-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
.dialog-section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.dialog-section h3 { margin-bottom: 22px; font-size: 22px; }
.includes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.includes-grid div {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.includes-grid strong,
.includes-grid span { display: block; }
.includes-grid strong { margin-bottom: 7px; font-size: 14px; }
.includes-grid span { color: var(--muted); font-size: 12px; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 32px;
}
.program-grid div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.program-grid span { color: var(--muted); font-family: Georgia, serif; font-size: 12px; }
.program-grid strong { font-size: 14px; font-weight: 620; }
.section-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.section-line span { color: var(--muted); font-size: 12px; }
.schedule-wrap { overflow-x: auto; }
.schedule-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}
.schedule-table th,
.schedule-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.schedule-table th { color: var(--muted); font-weight: 500; }
.schedule-table td:last-child { font-weight: 700; }
.trial-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 0;
  padding-bottom: 0;
}
.trial-note p { margin: 0; max-width: 650px; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--text);
  color: white;
  box-shadow: var(--shadow);
  font-size: 13px;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }



/* Вход и регистрация */
.auth-dialog {
  width: min(440px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.auth-dialog::backdrop {
  background: rgba(23, 29, 27, .58);
  backdrop-filter: blur(4px);
}
.auth-shell {
  position: relative;
  padding: 42px 42px 34px;
}
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 23px;
  line-height: 1;
}
.auth-close:hover {
  background: var(--surface-2);
}
.auth-brand {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 650;
}
.auth-view h2 {
  margin-bottom: 10px;
  font-size: 32px;
}
.auth-description {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.auth-form {
  display: grid;
  gap: 16px;
}
.auth-form label {
  display: grid;
  gap: 7px;
}
.auth-form label > span {
  color: var(--muted);
  font-size: 12px;
}
.auth-form input {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: white;
  color: var(--text);
}
.auth-form input:focus {
  border-color: var(--accent);
}
.auth-form .button {
  width: 100%;
  margin-top: 4px;
}
.auth-switch {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 7px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.auth-switch button:hover {
  color: var(--accent-dark);
}



/* Личный кабинет */
.dashboard-dialog {
  width: min(1120px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dashboard-dialog::backdrop {
  background: rgba(23, 29, 27, .58);
  backdrop-filter: blur(4px);
}
.dashboard-shell {
  min-height: min(760px, calc(100vh - 28px));
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
}
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  border-right: 1px solid var(--line);
  background: #edf0eb;
}
.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 8px 25px;
  border-bottom: 1px solid var(--line);
}
.dashboard-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 650;
}
.dashboard-brand strong,
.dashboard-brand small {
  display: block;
  line-height: 1.15;
}
.dashboard-brand strong {
  font-size: 13px;
}
.dashboard-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.dashboard-nav {
  display: grid;
  gap: 5px;
  margin-top: 25px;
}
.dashboard-nav-item {
  min-height: 43px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
.dashboard-nav-item:hover,
.dashboard-nav-item.is-active {
  background: var(--surface);
  color: var(--text);
}
.dashboard-nav-count {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
}
.dashboard-user {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 20px 8px 15px;
  border-top: 1px solid var(--line);
}
.dashboard-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 650;
}
.dashboard-user strong,
.dashboard-user span {
  display: block;
}
.dashboard-user strong {
  font-size: 12px;
}
.dashboard-user span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.dashboard-logout {
  padding: 9px 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-size: 12px;
}
.dashboard-logout:hover {
  color: var(--text);
}
.dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.dashboard-header {
  min-height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 20px 34px;
  border-bottom: 1px solid var(--line);
}
.dashboard-header .eyebrow {
  margin-bottom: 5px;
}
.dashboard-header h2 {
  margin: 0;
  font-size: 29px;
}
.dashboard-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}
.dashboard-close:hover {
  background: var(--surface-2);
}
.dashboard-content {
  min-height: 0;
  padding: 32px 34px 38px;
  overflow-y: auto;
}
.dashboard-panel[hidden] {
  display: none;
}
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(251, 250, 247, .72);
}
.dashboard-summary > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}
.dashboard-summary > div:last-child {
  border-right: 0;
}
.dashboard-summary span,
.dashboard-summary strong {
  display: block;
}
.dashboard-summary span {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-summary strong {
  margin-top: 5px;
  font-size: 14px;
}
.dashboard-next-lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px;
  border-radius: 14px;
  background: var(--text);
  color: white;
}
.dashboard-next-copy .eyebrow {
  color: #b9cec6;
}
.dashboard-next-copy h3 {
  margin-bottom: 8px;
  font-size: 27px;
}
.dashboard-next-copy p:last-child {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}
.dashboard-next-action {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.dashboard-next-action span {
  color: rgba(255,255,255,.62);
  font-size: 11px;
}
.dashboard-next-action button {
  min-width: 170px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.58);
  font-size: 12px;
}
.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.dashboard-card {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.dashboard-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.dashboard-card-head strong {
  color: var(--text);
}
.dashboard-card h3 {
  margin: 23px 0 8px;
  font-size: 18px;
}
.dashboard-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.dashboard-progress {
  height: 6px;
  margin: 26px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dde1dc;
}
.dashboard-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--accent);
}
.dashboard-text-button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.study-mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 18px 0 13px;
}
.study-mode-row h3 {
  margin: 0 0 5px;
}
.switch {
  position: relative;
  flex: 0 0 auto;
}
.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  width: 48px;
  height: 27px;
  display: block;
  position: relative;
  border-radius: 999px;
  background: #ced3ce;
  transition: background .2s ease;
}
.switch-track::after {
  content: "";
  width: 21px;
  height: 21px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(31,40,37,.18);
  transition: transform .2s ease;
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.switch input:checked + .switch-track {
  background: var(--accent);
}
.switch input:checked + .switch-track::after {
  transform: translateX(21px);
}
.study-mode-status {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.dashboard-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}
.dashboard-section-heading .eyebrow {
  margin-bottom: 6px;
}
.dashboard-section-heading h3 {
  margin: 0;
  font-size: 26px;
}
.dashboard-section-heading > span {
  color: var(--muted);
  font-size: 12px;
}
.student-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.student-course-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}
.student-course-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
}
.student-course-main h3 {
  margin: 17px 0 8px;
  font-size: 25px;
}
.student-course-main > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.student-course-progress {
  max-width: 430px;
  margin-top: 25px;
}
.student-course-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}
.student-course-progress strong {
  color: var(--text);
}
.student-course-progress .dashboard-progress {
  margin: 9px 0 0;
}
.student-course-actions {
  min-width: 170px;
  display: grid;
  align-content: center;
  gap: 10px;
}
.course-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.course-tools-grid button {
  min-height: 105px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.course-tools-grid button:hover {
  background: var(--surface-2);
}
.course-tools-grid span,
.course-tools-grid small {
  display: block;
}
.course-tools-grid span {
  font-size: 13px;
  font-weight: 650;
}
.course-tools-grid small {
  color: var(--muted);
  font-size: 10px;
}
.dashboard-list-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.dashboard-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.dashboard-list-head span,
.dashboard-list-head strong {
  display: block;
}
.dashboard-list-head span {
  color: var(--muted);
  font-size: 10px;
}
.dashboard-list-head strong {
  margin-top: 4px;
  font-size: 14px;
}
.dashboard-list-head time {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-list-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.dashboard-list-row:last-child {
  border-bottom: 0;
}
.dashboard-list-row span,
.dashboard-list-row em {
  color: var(--muted);
}
.dashboard-list-row em {
  font-style: normal;
}
.payment-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark) !important;
  font-weight: 650;
}
.payment-summary-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.payment-summary-card span,
.payment-summary-card strong {
  display: block;
}
.payment-summary-card span {
  color: var(--muted);
  font-size: 10px;
}
.payment-summary-card strong {
  margin-top: 5px;
  font-size: 13px;
}
.dashboard-settings-form {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dashboard-settings-form label {
  display: grid;
  gap: 7px;
}
.dashboard-settings-form label > span {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-settings-form input,
.dashboard-settings-form select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: white;
  color: var(--text);
}
.dashboard-settings-form input:focus,
.dashboard-settings-form select:focus {
  border-color: var(--accent);
}


@media (max-width: 920px) {

  .dashboard-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .dashboard-sidebar {
    padding-inline: 14px;
  }
  .dashboard-content,
  .dashboard-header {
    padding-left: 24px;
    padding-right: 24px;
  }
  .dashboard-summary {
    grid-template-columns: 1fr;
  }
  .dashboard-summary > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-summary > div:last-child {
    border-bottom: 0;
  }
  .course-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .payment-summary-card {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 72px;
  }
  .hero-note { max-width: 620px; }
  .course-card {
    grid-template-columns: 50px 1fr;
  }
  .course-side {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
    flex-direction: row;
    align-items: center;
  }
  .format-grid { grid-template-columns: repeat(2, 1fr); }
  .format-grid article:nth-child(2) { border-right: 0; }
  .format-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contacts-section { grid-template-columns: 1fr; gap: 36px; }
  .teacher-section { grid-template-columns: 250px 1fr; }
  .includes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {

  .dashboard-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 14px;
  }
  .dashboard-shell {
    min-height: calc(100vh - 16px);
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    display: block;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dashboard-brand {
    padding: 0 0 14px;
  }
  .dashboard-nav {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .dashboard-nav-item {
    min-width: max-content;
  }
  .dashboard-user,
  .dashboard-logout {
    display: none;
  }
  .dashboard-header {
    min-height: 77px;
    padding: 14px 18px;
  }
  .dashboard-header h2 {
    font-size: 24px;
  }
  .dashboard-content {
    padding: 20px 18px 28px;
  }
  .dashboard-next-lesson {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }
  .dashboard-next-action {
    justify-items: stretch;
  }
  .dashboard-next-action button {
    width: 100%;
  }
  .dashboard-overview-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .student-course-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .student-course-actions {
    grid-template-columns: 1fr 1fr;
  }
  .course-tools-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-list-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .dashboard-list-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .payment-summary-card {
    grid-template-columns: 1fr;
  }

  .auth-shell { padding: 38px 24px 28px; }
  .auth-view h2 { font-size: 29px; }
  .auth-switch { flex-wrap: wrap; }
  .site-header,
  .section,
  .site-footer { width: min(calc(100% - 24px), var(--container)); }
  .site-header { min-height: 68px; }
  .cabinet-link { font-size: 12px; }
  .section { padding-block: 68px; }
  h1 { font-size: 40px; }
  h2 { font-size: 31px; }
  .hero { padding-top: 58px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .course-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
  .course-index { padding: 0; }
  .course-side {
    grid-column: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .course-side .button { width: 100%; }
  .teacher-mini { padding-top: 10px; }
  .format-grid { grid-template-columns: 1fr; }
  .format-grid article {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .format-grid article:last-child { border-bottom: 0; }
  .format-number { margin-bottom: 28px; }
  .lesson-row { grid-template-columns: 52px 1fr; }
  .lesson-row button { grid-column: 1 / -1; }
  .site-footer {
    grid-template-columns: 1fr;
    gap: 15px;
    padding-block: 28px;
  }
  .footer-links { flex-direction: column; gap: 8px; }
  .dialog-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 52px 24px 28px;
  }
  .dialog-price { text-align: left; }
  .dialog-content { padding: 0 24px 34px; }
  .teacher-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }
  .teacher-section img { height: 320px; }
  .includes-grid,
  .program-grid { grid-template-columns: 1fr; }
  .trial-note { align-items: stretch; flex-direction: column; }
  .trial-note .button { width: 100%; }
}


/* Упрощённый профиль личного кабинета */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 18px;
}
.profile-card,
.study-entry-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.profile-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.profile-large-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 25px;
  font-weight: 650;
}
.profile-card-top .eyebrow {
  margin-bottom: 5px;
}
.profile-card-top h3 {
  margin: 0 0 5px;
  font-size: 25px;
}
.profile-card-top p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.profile-data {
  margin: 0;
}
.profile-data > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.profile-data > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-data dt {
  color: var(--muted);
  font-size: 11px;
}
.profile-data dd {
  margin: 0;
  font-size: 13px;
  font-weight: 620;
}
.account-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 10px;
}
.study-entry-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #e7ece8;
}
.study-entry-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
}
.study-entry-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.study-entry-button {
  display: block;
  margin-top: 36px;
  text-align: center;
}

@media (max-width: 920px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .profile-data > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


/* Продажа и оформление курса */
.course-actions-stack {
  width: 100%;
  display: grid;
  gap: 9px;
}
.course-actions-stack .button {
  width: 100%;
  text-align: center;
}
.dialog-purchase-actions {
  min-width: 220px;
  display: grid;
  gap: 10px;
}
.dialog-purchase-actions .button {
  text-align: center;
}
.dialog-course-page-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-size: 12px;
  text-underline-offset: 4px;
}

.commerce-body {
  min-height: 100vh;
}
.commerce-header {
  width: min(calc(100% - 40px), var(--container));
  min-height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}
.commerce-header-side {
  display: flex;
  align-items: center;
  gap: 18px;
}
.commerce-back {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.commerce-back:hover { color: var(--text); }
.commerce-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.commerce-progress span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}
.commerce-progress span.is-active,
.commerce-progress span.is-done {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.commerce-main {
  width: min(calc(100% - 40px), 1080px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  margin: 0 auto;
  padding: 64px 0 92px;
}
.commerce-main-wide {
  width: min(calc(100% - 40px), 940px);
  grid-template-columns: minmax(0, 1fr) 320px;
}
.commerce-heading {
  margin-bottom: 38px;
}
.commerce-heading h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 50px);
}
.commerce-heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}
.commerce-form {
  display: grid;
  gap: 18px;
}
.commerce-section {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251,250,247,.84);
}
.commerce-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 21px;
}
.commerce-section-head h2 {
  margin: 0;
  font-size: 22px;
}
.commerce-section-head span {
  color: var(--muted);
  font-size: 11px;
}
.course-choice {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.choice-button {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.choice-button strong,
.choice-button span {
  display: block;
}
.choice-button strong { font-size: 14px; }
.choice-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.choice-button.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice-grid {
  display: grid;
  gap: 10px;
}
.option-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.option-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.option-card input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.option-copy strong,
.option-copy span {
  display: block;
}
.option-copy strong { font-size: 13px; }
.option-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.option-price {
  text-align: right;
}
.option-price strong,
.option-price span {
  display: block;
}
.option-price strong { font-size: 13px; }
.option-price span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.form-grid .field-full { grid-column: 1 / -1; }
.commerce-field {
  display: grid;
  gap: 7px;
}
.commerce-field > span {
  color: var(--muted);
  font-size: 11px;
}
.commerce-field input,
.commerce-field select {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: white;
  color: var(--text);
}
.commerce-field input:focus,
.commerce-field select:focus { border-color: var(--accent); }
.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 11px;
}
.consent-row input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.consent-row a {
  color: var(--text);
  text-underline-offset: 3px;
}
.commerce-submit {
  width: 100%;
  min-height: 50px;
}
.commerce-help {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.commerce-help a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.order-summary {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 15px 40px rgba(31,40,37,.06);
}
.order-summary .eyebrow { margin-bottom: 12px; }
.order-summary h2 {
  margin-bottom: 20px;
  font-size: 23px;
}
.summary-list {
  margin: 0;
}
.summary-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.summary-list dt {
  color: var(--muted);
  font-size: 11px;
}
.summary-list dd {
  margin: 0;
  max-width: 170px;
  font-size: 12px;
  font-weight: 650;
  text-align: right;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding-top: 22px;
}
.summary-total span {
  color: var(--muted);
  font-size: 11px;
}
.summary-total strong {
  font-size: 25px;
}
.summary-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.prototype-note {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #c7b98c;
  border-radius: 9px;
  background: #f4eedb;
  color: #5f5639;
  font-size: 11px;
}
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.payment-method {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.payment-method:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.payment-method input { accent-color: var(--accent); }
.payment-method strong,
.payment-method small { display: block; }
.payment-method strong { font-size: 12px; }
.payment-method small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.payment-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.payment-panel[hidden] { display: none; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card-grid .field-full { grid-column: 1 / -1; }
.sbp-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}
.mock-qr {
  width: 120px;
  height: 120px;
  padding: 13px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.mock-qr span {
  background: var(--text);
  border-radius: 1px;
}
.mock-qr span:nth-child(3n) { opacity: .15; }
.sbp-box h3 { margin-bottom: 8px; }
.sbp-box p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}
.promo-message {
  min-height: 17px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.success-shell {
  width: min(calc(100% - 40px), 760px);
  margin: 0 auto;
  padding: 92px 0;
}
.success-card {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 27px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 25px;
}
.success-card h1 {
  margin-bottom: 15px;
  font-size: clamp(34px, 6vw, 50px);
}
.success-card > p {
  color: var(--muted);
}
.success-details {
  margin: 30px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.success-details > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  font-size: 12px;
}
.success-details span { color: var(--muted); }
.success-actions {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.legal-shell {
  width: min(calc(100% - 40px), 820px);
  margin: 0 auto;
  padding: 72px 0 100px;
}
.legal-shell article {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.legal-shell h1 { font-size: 42px; }
.legal-shell h2 {
  margin-top: 32px;
  font-size: 24px;
}
.legal-shell p,
.legal-shell li { color: var(--muted); }

/* Публичные страницы курсов */
.sales-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 70px;
  align-items: center;
}
.sales-hero h1 { font-size: clamp(40px, 5.8vw, 66px); }
.sales-hero-copy > p:last-of-type {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
}
.sales-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.sales-teacher-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.sales-teacher-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.82) contrast(.98);
}
.sales-teacher-card div { padding: 20px; }
.sales-teacher-card span,
.sales-teacher-card strong { display: block; }
.sales-teacher-card span {
  color: var(--muted);
  font-size: 10px;
}
.sales-teacher-card strong {
  margin-top: 5px;
  font-size: 14px;
}
.sales-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(251,250,247,.74);
}
.sales-facts div {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.sales-facts div:last-child { border-right: 0; }
.sales-facts span,
.sales-facts strong { display: block; }
.sales-facts span {
  color: var(--muted);
  font-size: 10px;
}
.sales-facts strong {
  margin-top: 5px;
  font-size: 14px;
}
.sales-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
}
.sales-copy h2 { margin-bottom: 22px; }
.sales-copy > p { color: var(--muted); }
.sales-includes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.sales-includes article {
  min-height: 145px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.sales-includes span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.sales-includes h3 {
  margin-bottom: 7px;
  font-size: 16px;
}
.sales-includes p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.sales-price-card {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.sales-price-card > span {
  color: var(--muted);
  font-size: 11px;
}
.sales-price-card > strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 29px;
}
.sales-price-card > small {
  color: var(--muted);
}
.sales-price-card ul {
  margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.sales-price-card li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 11px;
}
.sales-price-card .button {
  width: 100%;
  display: block;
  text-align: center;
}
.sales-price-card a + a { margin-top: 9px; }
.program-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.program-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(251,250,247,.72);
}
.program-list span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.program-list strong { font-size: 13px; }
.sales-schedule-grid {
  display: grid;
  gap: 11px;
  margin-top: 28px;
}
.sales-group-card {
  display: grid;
  grid-template-columns: 1fr 1.4fr .7fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.sales-group-card span,
.sales-group-card strong { display: block; }
.sales-group-card span {
  color: var(--muted);
  font-size: 10px;
}
.sales-group-card strong {
  margin-top: 4px;
  font-size: 13px;
}
.sales-group-card .button { white-space: nowrap; }
.sales-footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 42px;
  border-radius: 16px;
  background: var(--text);
  color: white;
}
.sales-footer-cta h2 {
  max-width: 640px;
  margin: 0;
}
.sales-footer-cta .button {
  flex: 0 0 auto;
  background: white;
  color: var(--text);
}

@media (max-width: 920px) {
  .commerce-main,
  .commerce-main-wide {
    grid-template-columns: 1fr;
  }
  .order-summary {
    position: static;
    order: -1;
  }
  .sales-hero,
  .sales-two-col {
    grid-template-columns: 1fr;
  }
  .sales-teacher-card {
    max-width: 440px;
  }
  .sales-price-card { position: static; }
  .sales-facts { grid-template-columns: repeat(2, 1fr); }
  .sales-facts div:nth-child(2) { border-right: 0; }
  .sales-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sales-group-card { grid-template-columns: 1fr 1fr; }
  .sales-group-card .button { width: 100%; }
}

@media (max-width: 680px) {
  .commerce-header {
    width: min(calc(100% - 24px), var(--container));
    min-height: 69px;
  }
  .commerce-header-side .commerce-back { display: none; }
  .commerce-progress { gap: 4px; }
  .commerce-progress span { width: 23px; height: 23px; }
  .commerce-main,
  .commerce-main-wide {
    width: min(calc(100% - 24px), 1080px);
    padding: 45px 0 70px;
  }
  .commerce-section { padding: 21px; }
  .course-choice,
  .form-grid,
  .payment-methods,
  .card-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .field-full,
  .card-grid .field-full { grid-column: auto; }
  .option-card {
    grid-template-columns: auto 1fr;
  }
  .option-price {
    grid-column: 2;
    text-align: left;
  }
  .sbp-box { grid-template-columns: 1fr; }
  .summary-list dd { max-width: 145px; }
  .success-shell { width: min(calc(100% - 24px), 760px); padding: 55px 0; }
  .success-card { padding: 28px 22px; }
  .success-actions { flex-direction: column; }
  .success-actions .button { width: 100%; text-align: center; }
  .sales-hero { min-height: auto; padding-top: 60px; }
  .sales-teacher-card img { height: 310px; }
  .sales-facts,
  .sales-includes,
  .program-list { grid-template-columns: 1fr; }
  .sales-facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .sales-facts div:last-child { border-bottom: 0; }
  .sales-group-card { grid-template-columns: 1fr; }
  .sales-footer-cta { align-items: stretch; flex-direction: column; padding: 28px 22px; }
  .sales-footer-cta .button { width: 100%; text-align: center; }
  .dialog-purchase-actions { width: 100%; }
}


/* Уточнённый сценарий оформления курса */
.choice-button small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.selection-notice,
.reservation-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}
.selection-notice strong,
.selection-notice span,
.reservation-hint strong,
.reservation-hint span {
  display: block;
}
.selection-notice strong,
.reservation-hint strong {
  font-size: 12px;
}
.selection-notice span,
.reservation-hint span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}
.option-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.option-card.is-unavailable {
  cursor: not-allowed;
  opacity: .62;
  background: #f1f0ec;
}
.option-card.is-unavailable:hover {
  border-color: var(--line);
}
.seat-status.is-low {
  color: #8b5d24;
  font-weight: 650;
}
.participant-section .consent-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.section-explanation {
  max-width: 650px;
  margin: -7px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.section-explanation-bottom {
  margin: 15px 0 0;
}
.commerce-field > span em {
  font-style: normal;
  color: #949b96;
}
.commerce-field small.input-error {
  min-height: 0;
  color: #a33b35;
  font-size: 10px;
}
.commerce-field input.is-invalid-input,
.commerce-field select.is-invalid-input {
  border-color: #b74a43;
  background: #fff8f7;
}
.same-person-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 12px;
}
.same-person-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.payer-fields {
  margin-top: 18px;
}
.required-check {
  position: relative;
  grid-template-columns: auto 1fr;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  transition: border-color .18s ease, background .18s ease;
}
.required-check + .required-check {
  margin-top: 8px;
}
.required-check .check-error {
  display: none;
  grid-column: 2;
  color: #a33b35;
  font-size: 10px;
  line-height: 1.4;
}
.required-check.is-invalid {
  border-color: #b74a43;
  background: #fff3f1;
  color: #7f2e29;
}
.required-check.is-invalid .check-error {
  display: block;
}
.required-check.is-invalid input {
  outline: 2px solid rgba(183,74,67,.25);
  outline-offset: 2px;
}
.form-error-summary {
  margin: 13px 0;
  padding: 12px 14px;
  border-left: 3px solid #b74a43;
  background: #fff3f1;
  color: #7f2e29;
  font-size: 11px;
}
.reservation-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 16px 0 18px;
  padding: 16px 18px;
  border: 1px solid #9fb7ad;
  border-radius: 10px;
  background: #edf4f0;
}
.reservation-banner div,
.reservation-banner strong,
.reservation-banner span {
  display: block;
}
.reservation-banner strong {
  font-size: 12px;
}
.reservation-banner span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.reservation-banner time {
  min-width: 58px;
  font-size: 20px;
  font-weight: 650;
  text-align: right;
}
.reservation-banner.is-expired {
  border-color: #d1a7a2;
  background: #fff3f1;
}
.reservation-banner.is-expired time,
.reservation-banner.is-expired strong {
  color: #8f352f;
}

@media (max-width: 680px) {
  .selection-notice,
  .reservation-hint,
  .reservation-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .selection-notice span,
  .reservation-hint span,
  .reservation-banner time {
    text-align: left;
  }
}


/* Прозрачное объяснение цены */
.price-explanation {
  margin: 16px 0 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.payment-summary-total {
  align-items: center;
}
.payment-price-stack {
  display: grid;
  justify-items: end;
  gap: 3px;
}
.payment-price-stack del {
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  opacity: .52;
  text-decoration-color: rgba(31, 40, 37, .48);
  text-decoration-thickness: 1px;
}
.promo-message.is-success {
  color: var(--accent-dark);
}
.promo-message.is-error {
  color: #9b3d35;
}
.promo-message.is-info {
  color: #6c623f;
}


.site-footer-expanded{min-height:0;grid-template-columns:1.2fr 1.25fr 1fr 1fr;align-items:start;gap:34px;padding:34px 0 26px}.footer-brand-block,.footer-operator,.footer-support{display:grid;align-content:start;gap:5px}.footer-label{margin-bottom:4px;color:#8a918c;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.footer-support a,.footer-legal-links a{color:var(--text)}.footer-operator small,.footer-support small,.footer-brand-block small{margin-top:5px;color:#8a918c;line-height:1.45}.footer-legal-links{display:grid;gap:8px}.footer-copyright{grid-column:1/-1;padding-top:18px;border-top:1px solid var(--line)}
.commerce-footer{width:min(calc(100% - 48px),1180px);display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:30px;margin:0 auto;padding:30px 0 38px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.commerce-footer>div,.commerce-footer nav{display:grid;align-content:start;gap:5px}.commerce-footer strong,.commerce-footer a{color:var(--text)}.commerce-footer small{color:#8a918c;line-height:1.45}
.checkout-trust-panel{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin-top:22px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--line)}.checkout-trust-panel>div{min-height:115px;display:grid;align-content:start;gap:6px;padding:18px;background:var(--surface)}.checkout-trust-panel span{color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.checkout-trust-panel strong,.checkout-trust-panel a{color:var(--text)}.checkout-trust-panel small{color:var(--muted);font-size:10px;line-height:1.5}.checkout-document-links{display:grid;gap:5px}.checkout-document-links a{font-size:11px;text-underline-offset:3px}
.inline-action,.text-link-button{padding:0;border:0;background:transparent;color:var(--accent);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:4px}.text-link-button{text-decoration:none}.button-quiet{border-color:transparent;background:transparent;color:var(--accent)}.course-choice-help{display:flex;justify-content:space-between;align-items:center;gap:32px;margin-top:18px;padding:25px 28px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}.course-choice-help h3{margin:7px 0;font-size:20px}.course-choice-help p{max-width:650px;margin:0;color:var(--muted);font-size:12px}.sales-footer-actions{display:flex;flex-wrap:wrap;gap:10px}
.commerce-field.is-invalid-field>span{color:#8b322d}.commerce-field .field-error{color:#a33b35;font-size:10px;line-height:1.35}.commerce-field .is-invalid-input{border-color:#b74a43;background:#fff8f7}
.consultation-dialog{width:min(690px,calc(100% - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:18px;background:var(--surface);box-shadow:var(--shadow)}.consultation-dialog::backdrop{background:rgba(23,29,27,.58);backdrop-filter:blur(4px)}.consultation-shell{position:relative;padding:38px}.consultation-close{position:absolute;top:16px;right:16px;width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);font-size:24px}.consultation-intro{display:grid;grid-template-columns:auto 1fr;gap:18px;padding-right:38px}.consultation-mark{width:43px;height:43px;display:grid;place-items:center;border:1px solid var(--text);border-radius:50%;font-weight:650}.consultation-intro h2{margin:7px 0 8px;font-size:29px}.consultation-intro p:last-child{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.consultation-form{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-top:27px}.consultation-field{display:grid;gap:7px}.consultation-field-full,.consultation-consent,.consultation-form-message,.consultation-form>.button{grid-column:1/-1}.consultation-field>span{color:var(--muted);font-size:11px}.consultation-field>span em{color:#929993;font-style:normal}.consultation-field input,.consultation-field select,.consultation-field textarea{width:100%;min-height:46px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;outline:none;resize:vertical;background:white;color:var(--text)}.consultation-field textarea{min-height:92px}.consultation-field .field-error{color:#a33b35;font-size:10px}.consultation-field.is-invalid-field>span{color:#8b322d}.consultation-field .is-invalid-input{border-color:#b74a43;background:#fff8f7}.consultation-consent{display:grid;grid-template-columns:auto 1fr;gap:8px 10px;padding:13px 14px;border:1px solid transparent;border-radius:9px;color:var(--muted);font-size:11px}.consultation-consent small{display:none;grid-column:2;color:#a33b35}.consultation-consent.is-invalid{border-color:#b74a43;background:#fff3f1}.consultation-consent.is-invalid small{display:block}.consultation-form-message{padding:11px 13px;border-left:3px solid #b74a43;background:#fff3f1;color:#7f2e29;font-size:11px}.consultation-success{padding:42px 0 10px;text-align:center}.consultation-success-mark{width:54px;height:54px;display:grid;place-items:center;margin:0 auto 18px;border-radius:50%;background:var(--accent-soft);color:var(--accent-dark);font-size:22px}.consultation-success p{max-width:450px;margin:0 auto 23px;color:var(--muted);font-size:12px}
.legal-requisites{margin:20px 0 30px;border:1px solid var(--line);border-radius:11px;overflow:hidden}.legal-requisites>div{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;padding:13px 16px;border-bottom:1px solid var(--line)}.legal-requisites>div:last-child{border-bottom:0}.legal-requisites dt{color:var(--muted);font-size:11px}.legal-requisites dd{margin:0;color:var(--text);font-size:12px}.legal-shell ol,.legal-shell ul{padding-left:20px}.legal-shell li{margin-bottom:7px}
@media(max-width:920px){.site-footer-expanded{grid-template-columns:repeat(2,1fr)}.commerce-footer{grid-template-columns:1fr 1fr}.commerce-footer nav{grid-column:1/-1}}
@media(max-width:680px){.site-footer-expanded,.commerce-footer,.checkout-trust-panel,.consultation-form{grid-template-columns:1fr}.commerce-footer{width:min(calc(100% - 28px),1180px)}.checkout-trust-panel>div{min-height:0}.course-choice-help{align-items:stretch;flex-direction:column;padding:22px}.consultation-shell{padding:32px 22px 24px}.consultation-intro{grid-template-columns:1fr;padding-right:30px}.consultation-intro h2{font-size:25px}.legal-requisites>div{grid-template-columns:1fr;gap:5px}}


.dialog-price-buy {
  display: inline-flex !important;
  justify-content: center;
  min-width: 170px;
  margin-top: 18px;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .dialog-price-buy {
    width: 100%;
    min-width: 0;
  }
}



.group-reserve-display {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(204, 214, 211, 0.42);
}

.group-reserve-copy {
  display: grid;
  gap: 6px;
  align-content: center;
}

.group-reserve-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.group-reserve-copy strong {
  font-size: 24px;
  line-height: 1.1;
}

.group-reserve-copy small {
  color: var(--muted);
  font-size: 14px;
}

.group-reserve-clock {
  min-width: 132px;
  display: grid;
  place-items: center;
  padding: 16px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(47, 91, 79, 0.18);
}

.group-reserve-clock span {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--accent);
}

.group-reserve-clock.is-expired span {
  color: #9b3d35;
}

@media (max-width: 760px) {
  .group-reserve-display {
    flex-direction: column;
    align-items: stretch;
  }

  .group-reserve-clock {
    min-width: 0;
  }
}


.course-help-section {
  padding-top: 26px;
  padding-bottom: 26px;
}

.courses-section + .course-help-section {
  padding-top: 0;
}

.course-help-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 25px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.course-help-copy {
  max-width: 760px;
}

.course-help-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-help-copy h2 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.15;
}

.course-help-copy p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.course-help-button {
  min-width: 220px;
  justify-content: space-between;
}

.group-reserve-display {
  display: none !important;
}

.group-option.is-selected-group {
  grid-template-rows: auto auto;
}

.group-reserve-inline {
  grid-column: 2 / -1;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 3px;
  padding-top: 13px;
  overflow: hidden;
  border-top: 1px solid rgba(47, 91, 79, .18);
  color: var(--muted);
}

.group-reserve-inline-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
}

.group-reserve-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 91, 79, .10);
}

.group-reserve-inline > strong {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.group-reserve-progress-track {
  grid-column: 1 / -1;
  height: 2px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(47, 91, 79, .10);
}

.group-reserve-progress-track > span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  background: var(--accent);
  transition: transform 1s linear;
}

.group-reserve-inline.is-expired {
  color: #9b3d35;
}

.group-reserve-inline.is-expired .group-reserve-dot,
.group-reserve-inline.is-expired .group-reserve-progress-track > span {
  background: #9b3d35;
}

.consultation-wizard-shell {
  width: min(680px, calc(100vw - 32px));
}

.consultation-wizard-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  align-items: start;
}

.consultation-wizard-head h2 {
  margin: 2px 0 7px;
}

.consultation-wizard-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.consultation-progress {
  height: 3px;
  margin: 25px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line);
}

.consultation-progress span {
  display: block;
  width: 33.333%;
  height: 100%;
  background: var(--accent);
  transition: width .22s ease;
}

.consultation-step-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 11px;
}

.consultation-step h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.consultation-choice-fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.consultation-choice-fieldset legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.consultation-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.consultation-choice-list {
  display: grid;
  gap: 8px;
}

.consultation-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.consultation-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consultation-choice span {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  transition: border-color .16s ease, background .16s ease;
}

.consultation-choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.consultation-choice input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consultation-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.consultation-step-error {
  margin: 13px 0 0;
  color: #a33b35;
  font-size: 11px;
}

.consultation-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .course-help-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px 0;
  }

  .course-help-button {
    width: 100%;
  }

  .group-reserve-inline {
    grid-column: 1 / -1;
  }

  .consultation-contact-grid,
  .consultation-choice-grid {
    grid-template-columns: 1fr;
  }

  .consultation-wizard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


.course-help-section {
  padding-top: 30px;
  padding-bottom: 54px;
}

.consultation-contact-shell {
  width: min(700px, calc(100vw - 32px));
}

.consultation-contact-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 17px;
  margin-bottom: 25px;
}

.consultation-contact-head h2 {
  margin: 2px 0 7px;
}

.consultation-contact-head p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.consultation-contact-form {
  display: grid;
  gap: 16px;
}

.consultation-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.consultation-contact-submit {
  width: 100%;
  min-height: 50px;
}

.dialog-help-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
}

.dialog-help-cta > div {
  max-width: 620px;
}

.dialog-help-cta span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dialog-help-cta h3 {
  margin: 0;
  font-size: 21px;
}

.dialog-help-cta p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dialog-help-cta .button {
  min-width: 205px;
}

@media (max-width: 760px) {
  .consultation-contact-grid,
  .dialog-help-cta {
    grid-template-columns: 1fr;
  }

  .dialog-help-cta .button {
    width: 100%;
  }
}


.course-dialog {
  width: min(1120px, calc(100% - 28px));
}

.dialog-hero-redesign {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  gap: 46px;
  padding: 62px 62px 42px;
  border-bottom: 0;
  background:
    linear-gradient(125deg, rgba(225, 232, 229, .72) 0%, rgba(251, 250, 247, .96) 52%, rgba(251, 250, 247, 1) 100%);
}

.dialog-hero-redesign::after {
  content: "";
  position: absolute;
  left: 62px;
  right: 62px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0 84px, var(--line) 84px 100%);
}

.dialog-hero-main {
  align-self: center;
  min-width: 0;
}

.dialog-hero-redesign .eyebrow {
  margin-bottom: 18px;
}

.dialog-hero-redesign h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(39px, 5.1vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
}

.dialog-hero-summary {
  max-width: 700px !important;
  margin: 24px 0 0 !important;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.dialog-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 32px;
  border-top: 1px solid rgba(47, 91, 79, .18);
}

.dialog-hero-facts > div {
  min-width: 0;
  padding: 16px 18px 0 0;
}

.dialog-hero-facts span,
.dialog-hero-facts strong {
  display: block;
}

.dialog-hero-facts span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .035em;
}

.dialog-hero-facts strong {
  font-size: 13px;
  line-height: 1.3;
}

.dialog-purchase-card {
  align-self: center;
  padding: 25px;
  border: 1px solid rgba(47, 91, 79, .22);
  border-radius: 15px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 44px rgba(31, 40, 37, .08);
  backdrop-filter: blur(8px);
}

.dialog-purchase-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dialog-purchase-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 10px;
}

.dialog-purchase-price strong {
  font-size: 31px;
  line-height: 1;
  letter-spacing: -.035em;
}

.dialog-purchase-price span {
  color: var(--muted);
  font-size: 11px;
}

.dialog-purchase-card > p {
  margin: 15px 0 21px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.dialog-purchase-card .dialog-price-buy {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
}

.dialog-purchase-card > small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.dialog-content {
  padding-top: 0;
}

.dialog-groups-section {
  padding-bottom: 18px;
  border-bottom: 0;
}

.dialog-groups-section .schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.dialog-help-cta {
  margin: 12px 0 0;
  padding: 24px 25px;
  border: 0;
  border-radius: 13px;
  background: var(--surface-2);
}

.dialog-help-cta .button {
  background: transparent;
}

@media (max-width: 860px) {
  .dialog-hero-redesign {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 54px 38px 38px;
  }

  .dialog-hero-redesign::after {
    left: 38px;
    right: 38px;
  }

  .dialog-purchase-card {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .dialog-hero-redesign {
    padding: 50px 22px 30px;
  }

  .dialog-hero-redesign::after {
    left: 22px;
    right: 22px;
  }

  .dialog-hero-redesign h2 {
    font-size: clamp(36px, 13vw, 52px);
  }

  .dialog-hero-summary {
    font-size: 15px;
  }

  .dialog-hero-facts {
    grid-template-columns: 1fr;
  }

  .dialog-hero-facts > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(47, 91, 79, .12);
  }

  .dialog-hero-facts span {
    margin: 0;
  }

  .dialog-content {
    padding-left: 22px;
    padding-right: 22px;
  }
}


.dialog-hero-clean {
  display: block;
  padding: 62px 62px 42px;
}

.dialog-hero-clean .dialog-hero-main {
  max-width: 850px;
}

.dialog-hero-clean .dialog-hero-summary {
  max-width: 760px !important;
}

.dialog-hero-clean .dialog-hero-facts {
  max-width: 760px;
}

.dialog-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  align-items: center;
  gap: 38px;
  margin-top: 18px;
  padding: 28px 30px;
  border-radius: 14px;
  background: var(--surface-2);
}

.dialog-final-price > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.dialog-final-price > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.dialog-final-price strong {
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.035em;
}

.dialog-final-price small {
  color: var(--muted);
  font-size: 11px;
}

.dialog-final-price p {
  max-width: 590px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.dialog-final-actions {
  display: grid;
  gap: 10px;
}

.dialog-final-actions .button {
  width: 100%;
  min-height: 51px;
  justify-content: space-between;
}

.course-help-kicker {
  color: var(--accent);
}

.consultation-contact-dialog {
  width: min(650px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
}

.consultation-contact-shell {
  width: auto;
  padding: 38px 40px 34px;
}

.consultation-contact-head {
  display: block;
  margin: 0;
  padding: 0 52px 0 0;
}

.consultation-contact-head .eyebrow {
  margin-bottom: 10px;
}

.consultation-contact-head h2 {
  margin: 0;
  font-size: clamp(31px, 5vw, 43px);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.consultation-contact-head p:last-child {
  max-width: 530px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.consultation-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 15px;
  margin-top: 28px;
}

.consultation-contact-form > * {
  min-width: 0;
}

.consultation-contact-form .consultation-field-full,
.consultation-contact-form .consultation-privacy-note,
.consultation-contact-form .consultation-form-message,
.consultation-contact-form .consultation-contact-submit {
  grid-column: 1 / -1;
}

.consultation-contact-form .consultation-field {
  gap: 8px;
}

.consultation-contact-form .consultation-field > span {
  font-size: 11px;
}

.consultation-contact-form .consultation-field input,
.consultation-contact-form .consultation-field select,
.consultation-contact-form .consultation-field textarea {
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 14px;
}

.consultation-contact-form .consultation-field textarea {
  min-height: 124px;
  line-height: 1.5;
}

.consultation-privacy-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.consultation-privacy-note a {
  color: var(--text);
  text-underline-offset: 3px;
}

.consultation-contact-submit {
  min-height: 52px;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .dialog-final-cta {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 23px;
  }

  .consultation-contact-shell {
    padding: 34px 22px 26px;
  }

  .consultation-contact-form {
    grid-template-columns: 1fr;
  }

  .consultation-contact-form .consultation-field-full,
  .consultation-contact-form .consultation-privacy-note,
  .consultation-contact-form .consultation-form-message,
  .consultation-contact-form .consultation-contact-submit {
    grid-column: auto;
  }
}


.dialog-groups-section {
  padding-top: 42px;
}

.group-comparison-heading {
  margin-bottom: 22px;
}

.group-comparison-heading > div {
  display: grid;
  gap: 5px;
}

.dialog-section-kicker {
  color: var(--accent);
  font-size: 10px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.group-comparison-heading h3 {
  margin: 0;
}

.group-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.group-comparison-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .52);
}

.group-comparison-card-head {
  min-height: 105px;
  display: grid;
  align-content: space-between;
  gap: 13px;
  padding: 20px;
  background: rgba(225, 232, 229, .62);
  border-bottom: 1px solid var(--line);
}

.group-comparison-card-head span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.group-comparison-card-head strong {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.group-comparison-list {
  margin: 0;
}

.group-comparison-list > div {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.group-comparison-list > div:last-child {
  border-bottom: 0;
}

.group-comparison-list dt {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.group-comparison-list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.42;
}

.group-comparison-price {
  background: rgba(251, 250, 247, .7);
}

.group-comparison-price dd {
  font-size: 18px;
  letter-spacing: -.02em;
}

.dialog-buy-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  align-items: center;
  gap: 42px;
  margin-top: 28px;
  padding: 31px 34px;
  border-radius: 16px;
  background:
    linear-gradient(115deg, rgba(47, 91, 79, .96), rgba(54, 105, 91, .92));
  color: #fff;
}

.dialog-buy-panel::after {
  content: "К";
  position: absolute;
  right: -18px;
  bottom: -57px;
  color: rgba(255, 255, 255, .055);
  font-size: 190px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.dialog-buy-panel-copy,
.dialog-buy-panel-action {
  position: relative;
  z-index: 1;
}

.dialog-buy-panel-kicker {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.dialog-buy-panel h3 {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.16;
}

.dialog-buy-panel-copy p {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  line-height: 1.55;
}

.dialog-buy-panel-action {
  display: grid;
  gap: 14px;
}

.dialog-buy-panel-price {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 12px;
}

.dialog-buy-panel-price > span {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
}

.dialog-buy-panel-price strong {
  color: #fff;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -.035em;
}

.dialog-buy-panel-price small {
  color: rgba(255, 255, 255, .7);
  font-size: 10px;
}

.dialog-buy-panel .dialog-price-buy {
  width: 100%;
  min-height: 53px;
  justify-content: space-between;
  border-color: #fff;
  background: #fff;
  color: var(--accent-dark);
}

.dialog-buy-panel .dialog-price-buy:hover {
  background: rgba(255, 255, 255, .91);
}

.dialog-final-cta,
.dialog-final-actions {
  display: none;
}

@media (max-width: 860px) {
  .group-comparison-grid {
    grid-template-columns: 1fr;
  }

  .group-comparison-card {
    display: grid;
    grid-template-columns: minmax(160px, .72fr) 1fr;
  }

  .group-comparison-card-head {
    min-height: 100%;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .dialog-buy-panel {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .dialog-buy-panel-action {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
  }
}

@media (max-width: 580px) {
  .group-comparison-card {
    display: block;
  }

  .group-comparison-card-head {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dialog-buy-panel {
    padding: 25px 22px;
  }

  .dialog-buy-panel-action {
    grid-template-columns: 1fr;
  }
}


.site-header {
  position: relative;
  z-index: 30;
}

.cabinet-menu {
  position: relative;
  justify-self: end;
}

.cabinet-trigger-icon {
  display: inline-grid;
  min-width: 14px;
  place-items: center;
  transition: transform .18s ease;
}

.cabinet-menu.is-authenticated:hover .cabinet-trigger-icon,
.cabinet-menu.is-authenticated:focus-within .cabinet-trigger-icon {
  transform: rotate(180deg);
}

.cabinet-dropdown {
  position: absolute;
  top: calc(100% + 13px);
  right: -10px;
  z-index: 50;
  width: 270px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(251, 250, 247, .98);
  box-shadow: 0 22px 60px rgba(31, 40, 37, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  pointer-events: none;
  transition:
    opacity .17s ease,
    visibility .17s ease,
    transform .17s ease;
  backdrop-filter: blur(14px);
}

.cabinet-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.cabinet-menu.is-authenticated:hover .cabinet-dropdown,
.cabinet-menu.is-authenticated:focus-within .cabinet-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.cabinet-dropdown-user {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 10px 10px 13px;
  border-bottom: 1px solid var(--line);
}

.cabinet-dropdown-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.cabinet-dropdown-user strong,
.cabinet-dropdown-user small {
  display: block;
}

.cabinet-dropdown-user strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cabinet-dropdown-user small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.cabinet-dropdown-list {
  display: grid;
  gap: 3px;
  padding-top: 8px;
}

.cabinet-dropdown-list button,
.cabinet-dropdown-list a {
  width: 100%;
  min-height: 43px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s ease;
}

.cabinet-dropdown-list button:hover,
.cabinet-dropdown-list button:focus-visible,
.cabinet-dropdown-list a:hover,
.cabinet-dropdown-list a:focus-visible {
  outline: none;
  background: var(--surface-2);
}

.cabinet-dropdown-list a {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
  padding-top: 12px;
}

.cabinet-dropdown-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 91, 79, .08);
  color: var(--accent);
}

.cabinet-dropdown-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cabinet-dropdown-arrow {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-nav-study {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  text-decoration: none;
}

.dashboard-nav-study:hover {
  color: var(--accent-dark);
}

@media (max-width: 760px) {
  .cabinet-dropdown {
    right: 0;
    width: min(270px, calc(100vw - 28px));
  }
}


.dashboard-panel[data-dashboard-panel="profile"] .profile-layout {
  grid-template-columns: minmax(0, 760px);
}

.dashboard-panel[data-dashboard-panel="profile"] .profile-card {
  width: 100%;
}

.startup-settings {
  margin: 23px 0 18px;
  padding: 0;
  border: 0;
}

.startup-settings legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.startup-setting-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  max-width: 640px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(225, 232, 229, .36);
  cursor: pointer;
}

.startup-setting-row:hover {
  border-color: rgba(47, 91, 79, .34);
}

.startup-setting-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.startup-setting-row strong,
.startup-setting-row small {
  display: block;
}

.startup-setting-row strong {
  font-size: 12px;
  line-height: 1.4;
}

.startup-setting-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

/* The study-space link exists only in the header dropdown. */
.dashboard-nav-study,
.study-entry-card,
.study-mode-row {
  display: none !important;
}


.cabinet-link {
  align-items: center;
}

.cabinet-trigger-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: currentColor;
  line-height: 1;
  transform-origin: 50% 50%;
}

.cabinet-trigger-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.cabinet-trigger-icon.is-chevron svg {
  width: 20px;
  height: 20px;
}

.cabinet-trigger-icon.is-login-arrow svg {
  width: 16px;
  height: 16px;
}



.combined-participants-section .section-explanation {
  max-width: 760px;
  margin-bottom: 20px;
}

.purchase-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.purchase-role-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .46);
}

.purchase-role-title {
  margin-bottom: 17px;
}

.purchase-role-title span,
.purchase-role-title small {
  display: block;
}

.purchase-role-title span {
  font-size: 14px;
  font-weight: 700;
}

.purchase-role-title small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.purchase-form-grid {
  gap: 13px 10px;
}

.purchase-form-grid .commerce-field {
  gap: 7px;
}

.purchase-form-grid .commerce-field > span {
  font-size: 9px;
}

.purchase-form-grid .commerce-field input,
.purchase-form-grid .commerce-field select {
  min-height: 48px;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
}

.purchase-inline-details {
  margin-top: 17px;
  border-top: 1px solid var(--line);
}

.purchase-inline-details summary {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.purchase-inline-details summary::-webkit-details-marker {
  display: none;
}

.purchase-inline-details summary > span:last-child {
  transition: transform .16s ease;
}

.purchase-inline-details[open] summary > span:last-child {
  transform: rotate(45deg);
}

.purchase-inline-details > .purchase-form-grid {
  padding-top: 5px;
}

.purchase-compact-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.purchase-compact-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--accent);
}

.purchase-receipt-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}

@media (max-width: 820px) {
  .purchase-role-grid {
    grid-template-columns: 1fr;
  }
}


.course-detail-page {
  width: min(calc(100% - 36px), 1120px);
  margin-inline: auto;
  padding: 36px 0 76px;
}

.course-detail-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(31, 40, 37, .08);
}

.course-detail-page .dialog-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(39px, 5.1vw, 66px);
  line-height: .98;
  letter-spacing: -.045em;
}

.course-detail-page .teacher-section h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.course-detail-page .dialog-section > h2,
.course-detail-page .group-comparison-heading h2 {
  margin: 0 0 22px;
  font-size: 22px;
}

.course-detail-page .group-comparison-heading h2 {
  margin-bottom: 0;
}

.course-detail-page .dialog-buy-panel h2 {
  max-width: 590px;
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.16;
}

@media (max-width: 620px) {
  .course-detail-page {
    width: min(calc(100% - 20px), 1120px);
    padding-top: 18px;
  }

  .course-detail-shell {
    border-radius: 14px;
  }
}


.course-detail-page {
  width: min(calc(100% - 32px), 1360px);
  padding: 42px 0 96px;
}

.course-detail-shell {
  border-radius: 20px;
  box-shadow: 0 28px 82px rgba(31, 40, 37, .065);
}

.course-detail-page .dialog-hero {
  padding: 64px 72px 58px;
}

.course-detail-page .dialog-hero-main {
  max-width: 1080px;
}

.course-detail-page .dialog-hero h1 {
  max-width: 1040px;
}

.course-detail-page .dialog-hero-summary {
  max-width: 880px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.65;
}

.course-detail-page .dialog-hero-facts {
  margin-top: 38px;
  gap: 16px;
}

.course-detail-page .dialog-hero-facts > div {
  min-height: 96px;
  padding: 20px 22px;
}

.course-detail-page .dialog-content {
  padding: 0 72px 72px;
}

.course-detail-page .teacher-section {
  grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
  gap: 64px;
  padding: 70px 0;
}

.course-detail-page .teacher-section img {
  width: 100%;
  max-width: 340px;
}

.course-detail-page .teacher-section h2 {
  margin-top: 7px;
  margin-bottom: 18px;
  font-size: 32px;
}

.course-detail-page .teacher-section > div > p:not(.eyebrow) {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.7;
}

.course-detail-page .achievement-list {
  margin-top: 28px;
  gap: 12px;
}

.course-detail-page .dialog-section {
  padding: 68px 0;
}

.course-detail-page .dialog-section + .dialog-section {
  border-top: 1px solid var(--line);
}

.course-detail-page .dialog-section > h2,
.course-detail-page .group-comparison-heading h2 {
  font-size: 27px;
}

.course-detail-page .includes-grid {
  margin-top: 30px;
  gap: 15px;
}

.course-detail-page .includes-grid > div {
  min-height: 132px;
  padding: 25px 26px;
}

.course-detail-page .includes-grid strong {
  font-size: 15px;
}

.course-detail-page .includes-grid span {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.55;
}

.course-detail-page .program-grid {
  margin-top: 30px;
  gap: 13px;
}

.course-detail-page .program-grid > div {
  min-height: 82px;
  padding: 19px 22px;
}

.course-detail-page .program-grid strong {
  font-size: 13px;
}

.course-detail-page .group-comparison-heading {
  margin-bottom: 30px;
}

.course-detail-page .group-comparison-grid {
  gap: 18px;
}

.course-detail-page .group-comparison-card {
  border-radius: 16px;
}

.course-detail-page .group-comparison-card-head {
  min-height: 124px;
  padding: 25px 26px;
}

.course-detail-page .group-comparison-card-head strong {
  font-size: 26px;
}

.course-detail-page .group-comparison-list > div {
  min-height: 106px;
  padding: 21px 26px;
}

.course-detail-page .group-comparison-list dd {
  font-size: 15px;
}

.course-detail-page .group-comparison-price dd {
  font-size: 20px;
}

.course-detail-page .dialog-buy-panel {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 58px;
  margin-top: 72px;
  padding: 42px 46px;
  border-radius: 18px;
}

.course-detail-page .dialog-buy-panel h2 {
  max-width: 700px;
  font-size: 29px;
}

.course-detail-page .dialog-buy-panel-copy p {
  max-width: 760px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.65;
}

.course-detail-page .dialog-buy-panel-action {
  gap: 18px;
}

.course-detail-page .dialog-buy-panel-price strong {
  font-size: 36px;
}

.course-detail-page .dialog-buy-panel .dialog-price-buy {
  min-height: 58px;
}

@media (max-width: 980px) {
  .course-detail-page .dialog-hero {
    padding: 52px 46px 48px;
  }

  .course-detail-page .dialog-content {
    padding: 0 46px 54px;
  }

  .course-detail-page .teacher-section {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
  }

  .course-detail-page .dialog-buy-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .course-detail-page {
    width: min(calc(100% - 18px), 1360px);
    padding: 18px 0 60px;
  }

  .course-detail-shell {
    border-radius: 14px;
  }

  .course-detail-page .dialog-hero {
    padding: 38px 24px 34px;
  }

  .course-detail-page .dialog-content {
    padding: 0 24px 34px;
  }

  .course-detail-page .dialog-hero-facts {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .course-detail-page .teacher-section {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 44px 0;
  }

  .course-detail-page .teacher-section img {
    max-width: 100%;
  }

  .course-detail-page .dialog-section {
    padding: 46px 0;
  }

  .course-detail-page .includes-grid,
  .course-detail-page .program-grid {
    grid-template-columns: 1fr;
  }

  .course-detail-page .group-comparison-grid {
    grid-template-columns: 1fr;
  }

  .course-detail-page .dialog-buy-panel {
    margin-top: 48px;
    padding: 28px 24px;
  }
}


body[data-commerce-page="purchase"] .commerce-main {
  width: min(calc(100% - 28px), 1260px);
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
}

body[data-commerce-page="purchase"] .commerce-heading h1 {
  max-width: 820px;
}

body[data-commerce-page="purchase"] .commerce-heading p:last-child {
  max-width: 780px;
}

body[data-commerce-page="purchase"] .order-summary {
  padding-inline: 23px;
}

@media (max-width: 1040px) and (min-width: 921px) {
  body[data-commerce-page="purchase"] .commerce-main {
    width: min(calc(100% - 24px), 1120px);
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }

  body[data-commerce-page="purchase"] .order-summary {
    padding-inline: 20px;
  }
}

@media (max-width: 920px) {
  body[data-commerce-page="purchase"] .commerce-main {
    width: min(calc(100% - 28px), 820px);
    grid-template-columns: 1fr;
  }

  body[data-commerce-page="purchase"] .order-summary {
    padding-inline: 25px;
  }
}

@media (max-width: 680px) {
  body[data-commerce-page="purchase"] .commerce-main {
    width: min(calc(100% - 20px), 820px);
  }
}


.course-detail-page #program {
  padding-top: 76px;
  padding-bottom: 76px;
}

.course-detail-page #program > h2 {
  margin-bottom: 10px;
  font-size: 31px;
}

.course-detail-page #program > h2::after {
  content: "Темы курса идут от основы к экзаменационной практике";
  display: block;
  max-width: 680px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.course-detail-page .program-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.course-detail-page .program-grid > div {
  position: relative;
  overflow: hidden;
  min-height: 142px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 25px 27px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(238, 242, 239, .64));
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.course-detail-page .program-grid > div::after {
  content: "К";
  position: absolute;
  right: -9px;
  bottom: -28px;
  color: rgba(49, 95, 84, .035);
  font-size: 102px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.course-detail-page .program-grid > div:hover {
  transform: translateY(-2px);
  border-color: rgba(49, 95, 84, .42);
  box-shadow: 0 14px 34px rgba(31, 40, 37, .07);
}

.course-detail-page .program-grid span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
}

.course-detail-page .program-grid strong {
  position: relative;
  z-index: 1;
  max-width: 430px;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.015em;
}

@media (max-width: 820px) {
  .course-detail-page .program-grid {
    grid-template-columns: 1fr;
  }

  .course-detail-page .program-grid > div {
    min-height: 126px;
  }
}

@media (max-width: 540px) {
  .course-detail-page #program {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .course-detail-page #program > h2 {
    font-size: 27px;
  }

  .course-detail-page .program-grid {
    gap: 12px;
    margin-top: 26px;
  }

  .course-detail-page .program-grid > div {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    min-height: 112px;
    padding: 20px;
  }

  .course-detail-page .program-grid span {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }

  .course-detail-page .program-grid strong {
    font-size: 16px;
  }
}


.combined-participants-section .section-explanation {
  margin-bottom: 26px;
  color: #5d6762;
  font-size: 14px;
  line-height: 1.65;
}

.purchase-role-grid {
  gap: 18px;
}

.purchase-role-card {
  padding: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.purchase-role-title {
  margin-bottom: 20px;
}

.purchase-role-title span {
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.purchase-role-title small {
  margin-top: 8px;
  color: #68716d;
  font-size: 13px;
  line-height: 1.45;
}

.purchase-form-grid {
  gap: 18px 14px;
}

.purchase-form-grid .commerce-field {
  gap: 9px;
}

.purchase-form-grid .commerce-field > span {
  color: #4b5651;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.purchase-form-grid .commerce-field > span em {
  color: #7f8984;
  font-style: normal;
  font-weight: 500;
}

.purchase-form-grid .commerce-field input,
.purchase-form-grid .commerce-field select,
.purchase-form-grid textarea {
  min-height: 56px;
  padding: 15px 16px;
  border: 1px solid #c7cfc9;
  border-radius: 12px;
  background: #fff;
  color: #1f2825;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.purchase-form-grid .commerce-field input::placeholder,
.purchase-form-grid .commerce-field select:invalid,
.purchase-form-grid textarea::placeholder {
  color: #8f9893;
}

.purchase-form-grid .commerce-field input:hover,
.purchase-form-grid .commerce-field select:hover,
.purchase-form-grid textarea:hover {
  border-color: #adb7b1;
}

.purchase-form-grid .commerce-field input:focus,
.purchase-form-grid .commerce-field select:focus,
.purchase-form-grid textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(49, 95, 84, .10);
  background: #fff;
}

.purchase-form-grid .field-error {
  min-height: 18px;
  color: #9d4a43;
  font-size: 12px;
}

.purchase-inline-details {
  margin-top: 22px;
  padding-top: 4px;
}

.purchase-inline-details summary {
  min-height: 48px;
  color: #4f5a55;
  font-size: 13px;
  font-weight: 600;
}

.purchase-inline-details summary > span:last-child {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(49, 95, 84, .08);
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
}

.purchase-inline-details > .purchase-form-grid {
  padding-top: 10px;
}

.purchase-compact-check {
  gap: 12px;
  margin-top: 20px;
  padding: 14px 15px;
  border-radius: 12px;
  color: #4f5a55;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(49, 95, 84, .04);
}

.purchase-compact-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.purchase-receipt-note {
  margin-top: 14px;
  color: #68716d;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .purchase-role-title span {
    font-size: 23px;
  }
}

@media (max-width: 640px) {
  .purchase-role-card {
    padding: 20px;
  }

  .purchase-role-title span {
    font-size: 22px;
  }

  .purchase-form-grid .commerce-field > span {
    font-size: 12px;
  }

  .purchase-form-grid .commerce-field input,
  .purchase-form-grid .commerce-field select,
  .purchase-form-grid textarea {
    min-height: 52px;
    padding: 13px 14px;
    font-size: 15px;
  }
}


.compact-purchase-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(31,40,37,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,40,37,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 30px 30px;
}

.compact-purchase-header {
  max-width: 1040px;
}

.compact-purchase-shell {
  width: min(calc(100% - 28px), 820px);
  margin-inline: auto;
  padding: 48px 0 72px;
}

.compact-purchase-heading {
  max-width: 690px;
  margin-bottom: 25px;
}

.compact-purchase-heading h1 {
  max-width: none;
  margin-bottom: 13px;
  font-size: clamp(35px, 5vw, 48px);
  line-height: 1.02;
}

.compact-purchase-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.compact-purchase-form {
  overflow: hidden;
  border: 1px solid #ccd2cd;
  border-radius: 18px;
  background: rgba(251,250,247,.96);
  box-shadow: 0 20px 58px rgba(31,40,37,.075);
}

.compact-form-section {
  padding: 27px 30px;
}

.compact-form-section + .compact-form-section {
  border-top: 1px solid var(--line);
}

.compact-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.compact-section-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.compact-section-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.compact-section-head h2 {
  margin: 0;
  font-size: 22px;
}

.compact-section-head > small {
  color: var(--muted);
  font-size: 11px;
}

.compact-group-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.compact-group-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.compact-group-card:hover {
  transform: translateY(-1px);
  border-color: #aeb9b2;
}

.compact-group-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(223,233,228,.68);
  box-shadow: inset 0 0 0 1px rgba(49,95,84,.12);
}

.compact-group-card.is-unavailable {
  opacity: .52;
  cursor: not-allowed;
}

.compact-group-card input {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.compact-group-card strong,
.compact-group-card span,
.compact-group-card small {
  display: block;
}

.compact-group-card > strong {
  padding-right: 25px;
  font-size: 14px;
}

.compact-group-card .compact-group-time {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.compact-group-card .compact-group-meta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 10px;
}

.compact-group-card .compact-group-meta strong {
  font-size: 13px;
}

.compact-group-card .compact-group-meta small {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}

.compact-student-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 14px;
}

.compact-field {
  gap: 8px;
}

.compact-field.field-wide {
  grid-column: 1 / -1;
}

.compact-field > span {
  color: #49544f;
  font-size: 12px;
  font-weight: 620;
}

.compact-field > span em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.compact-field input,
.compact-field select {
  min-height: 51px;
  padding: 12px 14px;
  border-color: #c3cbc5;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.compact-field input::placeholder {
  color: #8b9590;
}

.compact-field input:focus,
.compact-field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(49,95,84,.09);
}

.compact-field .field-error {
  min-height: 16px;
  color: #9d4a43;
  font-size: 11px;
}

.compact-plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.compact-plan-card {
  position: relative;
  min-height: 102px;
  display: grid;
  align-content: space-between;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.compact-plan-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(223,233,228,.68);
}

.compact-plan-card input {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.compact-plan-card strong,
.compact-plan-card span,
.compact-plan-card small {
  display: block;
}

.compact-plan-card > strong {
  padding-right: 25px;
  font-size: 14px;
}

.compact-plan-card > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.compact-plan-card .compact-plan-price {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
}

.compact-purchase-consent {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 10px;
  margin: 0 30px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.compact-purchase-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.compact-purchase-consent a {
  color: var(--text);
  text-underline-offset: 3px;
}

.compact-purchase-consent .check-error {
  grid-column: 2;
  color: #9d4a43;
  font-size: 11px;
}

.compact-purchase-errors {
  margin: 15px 30px 0;
}

.compact-purchase-submit {
  width: calc(100% - 60px);
  min-height: 55px;
  margin: 20px 30px 0;
  border-radius: 10px;
  font-size: 14px;
}

.compact-purchase-note {
  margin: 10px 30px 25px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.compact-purchase-page .commerce-footer {
  max-width: 1040px;
}

@media (max-width: 720px) {
  .compact-purchase-shell {
    width: min(calc(100% - 20px), 820px);
    padding-top: 32px;
  }

  .compact-form-section {
    padding: 23px 20px;
  }

  .compact-group-options,
  .compact-plan-options {
    grid-template-columns: 1fr;
  }

  .compact-group-card {
    min-height: 112px;
  }

  .compact-student-grid {
    grid-template-columns: 1fr;
  }

  .compact-field.field-wide {
    grid-column: auto;
  }

  .compact-section-head {
    align-items: flex-start;
  }

  .compact-section-head > small {
    display: none;
  }

  .compact-purchase-consent {
    margin-inline: 20px;
  }

  .compact-purchase-errors {
    margin-inline: 20px;
  }

  .compact-purchase-submit {
    width: calc(100% - 40px);
    margin-inline: 20px;
  }

  .compact-purchase-note {
    margin-inline: 20px;
  }
}


.course-product-page {
  width: min(calc(100% - 36px), 1280px);
  margin-inline: auto;
  padding: 28px 0 84px;
}

.course-product-back {
  margin-bottom: 16px;
}

.course-product-back a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
}

.course-product-back a:hover { color: var(--text); }

.course-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: stretch;
}

.course-product-intro,
.course-product-buy,
.course-product-section,
.course-product-final {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 250, 247, .96);
  box-shadow: 0 16px 46px rgba(31, 40, 37, .055);
}

.course-product-intro {
  padding: 54px 58px 46px;
}

.course-product-intro h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: .98;
  letter-spacing: -.05em;
}

.course-product-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.course-product-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.course-product-facts li {
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.course-product-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 38px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.course-product-benefits article {
  min-width: 0;
  padding-right: 18px;
}

.course-product-benefits article + article {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.course-product-benefits strong {
  display: block;
  font-size: 14px;
}

.course-product-benefits p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.course-product-buy {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 33px;
  border-color: rgba(49, 95, 84, .32);
  background: linear-gradient(145deg, #315f54, #24483f);
  color: #fff;
}

.course-product-buy-label {
  color: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-product-price {
  margin-top: 19px;
}

.course-product-price strong,
.course-product-price span { display: block; }

.course-product-price strong {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.04em;
}

.course-product-price span {
  margin-top: 7px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.course-product-buy > p {
  margin: 24px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.55;
}

.course-product-buy-button {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  margin-top: 27px;
  border-color: #fff;
  background: #fff;
  color: var(--accent-dark);
  font-size: 15px;
}

.course-product-buy-button:hover {
  background: rgba(255,255,255,.9);
  color: var(--accent-dark);
}

.course-product-groups-link {
  display: block;
  margin-top: 15px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  text-align: center;
  text-underline-offset: 4px;
}

.course-product-section {
  margin-top: 24px;
  padding: 46px 50px;
}

.course-product-section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.course-product-section-heading.compact {
  max-width: 720px;
}

.course-product-section-heading h2 {
  margin-bottom: 13px;
  font-size: clamp(29px, 3.5vw, 42px);
}

.course-product-section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.course-teacher-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.course-teacher-card img {
  width: 230px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  object-fit: cover;
  filter: saturate(.78);
}

.course-teacher-card h3 {
  margin-bottom: 13px;
  font-size: 27px;
}

.course-teacher-card p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.course-teacher-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.course-teacher-card li {
  position: relative;
  padding-left: 17px;
  font-size: 13px;
  line-height: 1.45;
}

.course-teacher-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.course-program-compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.course-program-compact article {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.5);
}

.course-program-compact span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
}

.course-program-compact strong {
  font-size: 14px;
  line-height: 1.35;
}

.course-group-options {
  display: grid;
  gap: 10px;
}

.course-group-option {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(260px, 1.2fr) minmax(220px, .7fr);
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.52);
}

.course-group-title span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.course-group-title h3 {
  margin: 6px 0 0;
  font-size: 22px;
}

.course-group-data strong,
.course-group-data span { display: block; }

.course-group-data strong {
  font-size: 14px;
}

.course-group-data span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.course-group-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.course-group-price > strong {
  font-size: 15px;
  white-space: nowrap;
}

.course-group-price .button {
  min-height: 44px;
  padding-inline: 16px;
}

.course-product-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: 24px;
  padding: 34px 38px;
}

.course-product-final > div:first-child > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.course-product-final h2 {
  margin: 7px 0 0;
  font-size: 29px;
}

.course-product-final p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.course-product-final-action {
  display: flex;
  align-items: center;
  gap: 20px;
}

.course-product-final-action > strong {
  font-size: 22px;
  white-space: nowrap;
}

.course-product-final-action .button {
  min-height: 52px;
  padding-inline: 24px;
}

@media (max-width: 1020px) {
  .course-product-hero { grid-template-columns: 1fr 300px; }
  .course-product-intro { padding: 43px 42px 38px; }
  .course-product-benefits { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .course-product-benefits article:nth-child(3) { padding-left: 0; border-left: 0; }
  .course-group-option { grid-template-columns: minmax(150px,.65fr) minmax(220px,1fr); }
  .course-group-price { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); }
}

@media (max-width: 780px) {
  .course-product-page { width: min(calc(100% - 20px), 1280px); padding-top: 18px; }
  .course-product-hero { grid-template-columns: 1fr; }
  .course-product-buy { position: static; }
  .course-product-section { padding: 35px 28px; }
  .course-teacher-card { grid-template-columns: 170px minmax(0,1fr); gap: 25px; }
  .course-teacher-card img { width: 170px; }
  .course-teacher-card ul { grid-template-columns: 1fr; }
  .course-product-final { grid-template-columns: 1fr; }
  .course-product-final-action { justify-content: space-between; }
}

@media (max-width: 580px) {
  .course-product-intro { padding: 34px 23px 28px; }
  .course-product-intro h1 { font-size: 41px; }
  .course-product-lead { font-size: 15px; }
  .course-product-benefits { grid-template-columns: 1fr; }
  .course-product-benefits article,
  .course-product-benefits article + article { padding: 13px 0; border-left: 0; border-top: 1px solid var(--line); }
  .course-product-benefits article:first-child { border-top: 0; }
  .course-product-buy { padding: 28px 23px; }
  .course-product-section { padding: 31px 22px; }
  .course-teacher-card { grid-template-columns: 1fr; }
  .course-teacher-card img { width: 100%; max-height: 360px; }
  .course-program-compact { grid-template-columns: 1fr; }
  .course-group-option { grid-template-columns: 1fr; gap: 14px; }
  .course-group-price { grid-column: auto; }
  .course-product-final { padding: 28px 23px; }
  .course-product-final-action { align-items: stretch; flex-direction: column; }
  .course-product-final-action .button { width: 100%; }
}


.course-product-hero {
  grid-template-columns: minmax(0, 1fr);
}

.course-product-intro {
  width: 100%;
}

.course-product-intro h1,
.course-product-lead {
  max-width: 960px;
}


.course-side.course-side-actions-only {
  justify-content: center;
}

.course-group-profile-list {
  display: grid;
  gap: 16px;
}
.course-group-profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 12px 34px rgba(31,40,37,.045);
}
.course-group-profile-main {
  display: grid;
  grid-template-columns: minmax(220px,.7fr) minmax(300px,1.15fr);
  gap: 34px;
  padding: 27px 30px 25px;
}
.course-group-profile-title > span {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.course-group-profile-title h3 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -.025em;
}
.course-group-profile-schedule {
  margin: 13px 0 0;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.25;
}
.course-group-profile-seat {
  display: inline-flex;
  width: fit-content;
  margin-top: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}
.course-group-profile-card.is-unavailable .course-group-profile-seat {
  background: #eceeea;
  color: var(--muted);
}
.course-group-profile-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}
.course-group-profile-facts > div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 13px 16px;
  background: var(--surface);
}
.course-group-profile-facts dt {
  color: var(--muted);
  font-size: 12px;
}
.course-group-profile-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.3;
}
.course-group-profile-footer {
  min-height: 105px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: rgba(237,241,236,.56);
}
.course-group-teacher {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
}
.course-group-teacher img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
  filter: saturate(.84);
}
.course-group-teacher span,
.course-group-teacher strong { display: block; }
.course-group-teacher span {
  color: var(--muted);
  font-size: 12px;
}
.course-group-teacher strong {
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.25;
}
.teacher-profile-open {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}
.teacher-profile-open:hover { background: #edf1ec; }
.course-group-profile-action {
  min-width: 210px;
  display: grid;
  justify-items: end;
  gap: 9px;
}
.course-group-profile-action strong {
  font-size: 21px;
  white-space: nowrap;
}
.course-group-profile-action .button {
  min-width: 178px;
  min-height: 48px;
}
.course-group-profile-action .button[aria-disabled="true"] {
  opacity: .52;
  pointer-events: none;
}
.teacher-dialog-open { overflow: hidden; }
.teacher-profile-dialog {
  width: min(900px,calc(100% - 28px));
  max-height: min(86vh,760px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px rgba(31,40,37,.28);
}
.teacher-profile-dialog::backdrop {
  background: rgba(22,29,27,.58);
  backdrop-filter: blur(5px);
}
.teacher-profile-dialog-shell { position: relative; }
.teacher-profile-dialog-close {
  position: sticky;
  top: 14px;
  z-index: 3;
  float: right;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 14px 14px -56px 0;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 22px;
}
.teacher-profile-dialog-hero {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
  background: linear-gradient(135deg,var(--accent-dark),#3f7365);
  color: #fff;
}
.teacher-profile-dialog-hero img {
  width: 250px;
  aspect-ratio: 4/5;
  border-radius: 15px;
  object-fit: cover;
  object-position: center 22%;
  background: #fff;
}
.teacher-profile-dialog-hero .eyebrow { color: rgba(255,255,255,.7); }
.teacher-profile-dialog-hero h2 {
  margin: 7px 0 12px;
  font-size: 35px;
  line-height: 1.08;
}
.teacher-profile-dialog-hero p:last-child {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.6;
}
.teacher-profile-dialog-body {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  padding: 28px 32px 34px;
}
.teacher-profile-fact {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf9f5;
}
.teacher-profile-fact span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.teacher-profile-fact h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.teacher-profile-fact p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .course-group-profile-main { grid-template-columns: 1fr; }
  .course-group-profile-footer { grid-template-columns: 1fr; }
  .course-group-profile-action { justify-items: stretch; grid-template-columns: 1fr auto; align-items: center; }
  .teacher-profile-dialog-hero { grid-template-columns: 180px minmax(0,1fr); padding: 32px; }
  .teacher-profile-dialog-hero img { width: 180px; }
  .teacher-profile-dialog-body { grid-template-columns: 1fr; }
  .teacher-profile-fact { min-height: 0; }
}
@media (max-width: 640px) {
  .course-group-profile-main { padding: 23px 20px; }
  .course-group-profile-facts { grid-template-columns: 1fr; }
  .course-group-profile-footer { padding: 18px 20px; }
  .course-group-teacher { grid-template-columns: 52px minmax(0,1fr); }
  .course-group-teacher img { width: 52px; height: 52px; }
  .teacher-profile-open { grid-column: 1/-1; width: 100%; justify-content: center; }
  .course-group-profile-action { grid-template-columns: 1fr; justify-items: stretch; }
  .course-group-profile-action .button { width: 100%; }
  .teacher-profile-dialog-hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .teacher-profile-dialog-hero img { width: 150px; }
  .teacher-profile-dialog-hero h2 { font-size: 29px; }
  .teacher-profile-dialog-body { padding: 20px; }
}



.course-closed-state {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}
.course-closed-state strong {
  color: var(--text);
  font-size: 14px;
}
.course-closed-state small {
  max-width: 230px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.course-enrollment-empty {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.course-enrollment-empty > span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.course-enrollment-empty h3 { margin: 0 0 8px; }
.course-enrollment-empty p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.compact-purchase-empty {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.compact-purchase-empty strong { font-size: 14px; }
.compact-purchase-empty span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .course-closed-state { justify-items: start; text-align: left; }
}


.course-side-actions-only .course-actions-stack .course-closed-state {
  justify-items: center;
  text-align: center;
}
.course-groups-empty-message {
  margin: 0;
  padding: 8px 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .course-side-actions-only .course-actions-stack .course-closed-state {
    justify-items: start;
    text-align: left;
  }
}


.lesson-package-intro{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.lesson-package-intro>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.lesson-package-intro span,.lesson-package-intro strong{display:block}.lesson-package-intro span{color:var(--muted);font-size:11px}.lesson-package-intro strong{margin-top:4px;font-size:17px}
.lesson-package-presets{grid-template-columns:repeat(3,1fr)}
.lesson-preset-card small{display:block;margin-top:6px;color:var(--accent);font-weight:700}
.lesson-package-custom{margin-top:14px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff}
.lesson-package-custom-head{display:flex;align-items:end;justify-content:space-between;gap:20px}.lesson-package-custom-head strong,.lesson-package-custom-head span{display:block}.lesson-package-custom-head>div span{margin-top:4px;color:var(--muted);font-size:11px}
.lesson-package-custom-head label{display:flex;align-items:center;gap:9px}.lesson-package-custom-head label span{color:var(--muted);font-size:11px}.lesson-package-custom-head input{width:96px;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;font-size:18px;font-weight:700}
.lesson-package-custom>input[type=range]{width:100%;margin:20px 0 12px;accent-color:var(--accent)}
.lesson-package-scale{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.lesson-package-scale span{padding:8px;border-radius:8px;background:var(--surface2);text-align:center}.lesson-package-scale strong,.lesson-package-scale small{display:block}.lesson-package-scale strong{font-size:10px}.lesson-package-scale small{color:var(--accent);font-size:10px;font-weight:700}
.lesson-price-summary{margin-top:14px}.lesson-price-summary-main{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--line);gap:1px}.lesson-price-summary-main>div{min-height:96px;padding:15px;background:#fff}.lesson-price-summary-main span,.lesson-price-summary-main strong,.lesson-price-summary-main small{display:block}.lesson-price-summary-main span{color:var(--muted);font-size:10px}.lesson-price-summary-main strong{margin-top:5px;font-size:17px}.lesson-price-summary-main small{margin-top:5px;color:var(--muted);font-size:9px}.lesson-price-summary-main .is-total{background:var(--accent-soft)}.lesson-price-summary-main .is-total strong{font-size:22px;color:var(--accent-dark)}
.lesson-selling-action>div{display:grid;gap:3px}.lesson-selling-action small{display:block;color:var(--muted);font-size:10px}
@media(max-width:760px){.lesson-package-intro,.lesson-package-presets,.lesson-price-summary-main{grid-template-columns:1fr}.lesson-package-custom-head{align-items:stretch;flex-direction:column}.lesson-package-scale{grid-template-columns:repeat(2,1fr)}}

.payment-status-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(31,40,37,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,40,37,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 30px 30px;
}

.payment-status-shell {
  width: min(calc(100% - 28px), 820px);
  margin-inline: auto;
  padding: 48px 0 72px;
}

.payment-status-heading {
  max-width: 690px;
  margin-bottom: 25px;
}

.payment-status-heading h1 {
  max-width: none;
  margin-bottom: 13px;
  font-size: clamp(35px, 5vw, 48px);
  line-height: 1.02;
}

.payment-status-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.payment-state-card {
  overflow: hidden;
  border: 1px solid #ccd2cd;
  border-radius: 18px;
  background: rgba(251,250,247,.97);
  box-shadow: 0 20px 58px rgba(31,40,37,.075);
}

.payment-state-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}

.payment-state-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7ebe8;
  color: var(--accent);
  font-size: 25px;
  font-weight: 750;
  line-height: 1;
}

.payment-state-copy {
  min-width: 0;
}

.payment-state-label,
.payment-state-copy h2,
.payment-state-copy p {
  display: block;
}

.payment-state-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payment-state-copy h2 {
  margin: 0 0 6px;
  font-size: 25px;
}

.payment-state-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.payment-state-badge {
  padding: 8px 11px;
  border-radius: 999px;
  background: #e7ebe8;
  color: #4d5a55;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.payment-timer-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
  background: #f0f2ee;
}

.payment-timer-panel[hidden] {
  display: none;
}

.payment-timer-panel > div {
  min-width: 150px;
}

.payment-timer-panel span,
.payment-timer-panel strong {
  display: block;
}

.payment-timer-panel span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.payment-timer-panel strong {
  font-size: 31px;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.payment-timer-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.payment-timer-panel.is-ending {
  background: #f6eee6;
}

.payment-timer-panel.is-ending strong {
  color: #9d5d39;
}

.payment-order-card {
  margin: 24px 30px 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.payment-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.payment-order-head span,
.payment-order-head strong,
.payment-order-head small {
  display: block;
}

.payment-order-head span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payment-order-head strong {
  margin-top: 4px;
  font-size: 14px;
}

.payment-order-head small {
  color: var(--muted);
  font-size: 10px;
}

.payment-order-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .7fr .9fr;
  gap: 1px;
  background: var(--line);
}

.payment-order-grid > div {
  min-width: 0;
  padding: 15px 18px;
  background: #fff;
}

.payment-order-grid span,
.payment-order-grid strong {
  display: block;
}

.payment-order-grid span {
  color: var(--muted);
  font-size: 9px;
}

.payment-order-grid strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.payment-order-grid .payment-order-total {
  background: var(--accent-soft);
}

.payment-order-grid .payment-order-total strong {
  color: var(--accent-dark);
  font-size: 15px;
}

.payment-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 30px 0;
}

.payment-state-actions .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.payment-state-actions .button[hidden] {
  display: none;
}


.payment-update-note {
  margin: 11px 30px 25px;
  color: var(--muted);
  font-size: 10px;
}

.payment-state-card[data-state="succeeded"] .payment-state-main {
  background: #eef5f0;
}

.payment-state-card[data-state="succeeded"] .payment-state-icon,
.payment-state-card[data-state="succeeded"] .payment-state-badge {
  background: #d8eadf;
  color: #2d6845;
}

.payment-state-card[data-state="expired"] .payment-state-main {
  background: #f7efed;
}

.payment-state-card[data-state="expired"] .payment-state-icon,
.payment-state-card[data-state="expired"] .payment-state-badge {
  background: #ecd9d5;
  color: #8d423c;
}


.payment-status-footer {
  max-width: 1040px;
}

@media (max-width: 720px) {
  .payment-status-shell {
    width: min(calc(100% - 20px), 820px);
    padding-top: 32px;
  }

  .payment-state-main {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 23px 20px;
  }

  .payment-state-badge {
    grid-column: 2;
    justify-self: start;
  }

  .payment-state-icon {
    width: 50px;
    height: 50px;
    font-size: 21px;
  }

  .payment-state-copy h2 {
    font-size: 22px;
  }

  .payment-timer-panel {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 18px 20px;
  }

  .payment-order-card {
    margin: 20px 20px 0;
  }

  .payment-order-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .payment-order-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-state-actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 20px 20px 0;
  }

  .payment-update-note {
    margin-inline: 20px;
  }

}

@media (max-width: 430px) {
  .payment-order-grid {
    grid-template-columns: 1fr;
  }
}


.compact-group-teacher-fixed{display:block;color:var(--muted);font-size:11px;line-height:1.45}.compact-group-teacher-fixed strong{color:var(--ink)}
.lesson-package-intro{grid-template-columns:repeat(4,1fr)}.lesson-package-intro small{display:block;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.35}
.lesson-package-scale{grid-template-columns:repeat(3,1fr)}.lesson-package-scale span.is-current{background:var(--accent-soft);outline:1px solid rgba(140,70,42,.22)}
.purchase-sequence-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;margin-top:12px;padding:14px 16px;border-radius:12px;background:var(--surface2);font-size:11px;line-height:1.5}.purchase-sequence-note strong{white-space:nowrap}.purchase-sequence-note span{color:var(--muted)}
.course-group-late-join-note{grid-column:1/-1;margin:4px 0 0;padding:13px 15px;border-radius:12px;background:var(--surface2);color:var(--muted);font-size:12px;line-height:1.55}
@media(max-width:760px){.lesson-package-intro{grid-template-columns:1fr}.purchase-sequence-note{grid-template-columns:1fr}}

/* Личный кабинет: единая история платежей */
.dashboard-payment-action {
  margin: 12px 0 0;
}

.dashboard-active-payment {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(39, 111, 191, .28);
  border-radius: 16px;
  background: rgba(39, 111, 191, .07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-active-payment[hidden] {
  display: none;
}

.dashboard-active-payment span,
.dashboard-active-payment strong {
  display: block;
}

.dashboard-active-payment span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.dashboard-payment-row {
  grid-template-columns: minmax(115px, .65fr) minmax(210px, 1.55fr) minmax(115px, .7fr) minmax(90px, .55fr);
  align-items: center;
}

.dashboard-payment-row strong small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
}

.dashboard-payment-row b {
  text-align: right;
  font-size: 14px;
}

.dashboard-payment-state {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}

.dashboard-payment-state.is-succeeded,
.payment-status.is-succeeded {
  color: #20754d;
}

.dashboard-payment-state.is-pending,
.payment-status.is-pending {
  color: #946200;
}

.dashboard-payment-state.is-expired {
  color: #a23d3d;
}

.dashboard-payment-empty {
  padding: 18px;
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.dashboard-payment-empty strong {
  color: var(--ink);
}

.payment-order-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-order-grid .payment-order-total {
  grid-column: span 1;
}

@media (max-width: 760px) {
  .dashboard-active-payment {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-payment-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .dashboard-payment-row b {
    text-align: left;
  }

  .payment-order-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-error{margin:0;color:#9b2c2c;font-size:.85rem}.auth-inline-link{border:0;background:none;color:var(--accent,#204f3f);padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.auth-purchase-note{padding:12px 14px;border-radius:14px;background:#f4efe4;display:grid;gap:4px;margin-bottom:14px}.auth-purchase-note[hidden]{display:none}.auth-purchase-note span{font-size:.85rem;color:#5f625d}.auth-gate-dialog{border:0;border-radius:24px;padding:0;max-width:520px;width:calc(100% - 32px);box-shadow:0 30px 80px rgba(20,30,25,.22)}.auth-gate-dialog::backdrop{background:rgba(16,23,20,.58)}.auth-gate-shell{padding:32px;position:relative}.auth-gate-shell h2{margin:8px 0 12px}.auth-gate-close{position:absolute;right:18px;top:14px;border:0;background:none;font-size:28px;cursor:pointer}.auth-gate-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.purchase-auth-gate{max-width:720px;margin:70px auto;padding:42px;border:1px solid #dfe3df;border-radius:24px;background:#fff;box-shadow:0 20px 50px rgba(20,30,25,.08)}.purchase-auth-gate h1{margin:8px 0 14px}.purchase-auth-gate .button{margin:18px 10px 0 0}.purchase-student-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.purchase-student-summary>div{border:1px solid #dde2de;border-radius:16px;padding:16px;display:grid;gap:5px}.purchase-student-summary span{font-size:.78rem;color:#70756f}.purchase-student-summary strong{font-size:.98rem}@media(max-width:720px){.purchase-student-summary{grid-template-columns:1fr}.auth-gate-actions{flex-direction:column}.auth-gate-actions .button{width:100%}}
