/* MASO course embed — для встройки на сторонние сайты */
.maso-embed {
  --me-text: #121828;
  --me-muted: #5a6478;
  --me-accent: #5199ff;
  --me-border: #e3e8f0;
  --me-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  box-sizing: border-box;
  font-family: var(--me-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--me-text);
  background: transparent;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.maso-embed *,
.maso-embed *::before,
.maso-embed *::after {
  box-sizing: border-box;
}

.maso-embed img {
  max-width: 100%;
  height: auto;
  display: block;
}

.maso-embed__section {
  padding: 48px 0;
  border-bottom: 1px solid var(--me-border);
}

.maso-embed__section:last-child {
  border-bottom: none;
}

.maso-embed__title {
  margin: 0 0 32px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--me-text);
}

.maso-embed__title--center {
  text-align: center;
}

.maso-embed__title span {
  color: var(--me-accent);
}

/* Audience */
.maso-embed__audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.maso-embed__aud-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
}

.maso-embed__aud-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.maso-embed__aud-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--me-muted);
}

/* Skills / salary */
.maso-embed__skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: center;
}

.maso-embed__salary h3 {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
}

.maso-embed__salary-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 18px;
}

.maso-embed__salary-row:last-child {
  margin-bottom: 0;
}

.maso-embed__salary-value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.maso-embed__salary-bar {
  grid-column: 2;
  height: 8px;
  border-radius: 4px;
  background: #eef2f8;
  overflow: hidden;
}

.maso-embed__salary-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--me-accent);
}

.maso-embed__salary-label {
  grid-column: 2;
  font-size: 13px;
  color: var(--me-muted);
  line-height: 1.4;
}

.maso-embed__skills-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.maso-embed__skills-copy h2 span {
  color: var(--me-accent);
}

.maso-embed__skills-copy p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--me-muted);
}

.maso-embed__skills-copy p:last-child {
  margin-bottom: 0;
}

.maso-embed__hint {
  font-size: 13px !important;
  font-style: italic;
}

/* Learn */
.maso-embed__learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.maso-embed__learn-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--me-border);
  border-radius: 12px;
  background: transparent;
}

.maso-embed__learn-card img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.maso-embed__learn-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.maso-embed__learn-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--me-muted);
}

/* Program accordion */
.maso-embed__accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.maso-embed__acc-item {
  border: 1px solid var(--me-border);
  border-radius: 10px;
  background: transparent;
  overflow: hidden;
}

.maso-embed__acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: var(--me-text);
  cursor: pointer;
}

.maso-embed__acc-head:hover {
  color: var(--me-accent);
}

.maso-embed__acc-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--me-accent);
  transition: transform 0.2s;
}

.maso-embed__acc-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.maso-embed__acc-item.is-open .maso-embed__acc-icon {
  transform: rotate(180deg);
}

.maso-embed__acc-body {
  display: none;
  padding: 0 20px 18px;
}

.maso-embed__acc-item.is-open .maso-embed__acc-body {
  display: block;
}

.maso-embed__acc-topics {
  margin: 0;
  padding: 0;
  list-style: none;
}

.maso-embed__acc-topics li {
  padding: 10px 0;
  border-top: 1px solid var(--me-border);
  font-size: 14px;
  line-height: 1.5;
  color: var(--me-muted);
}

/* Teachers */
.maso-embed__teachers-lead {
  max-width: 820px;
  margin: -12px auto 32px;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: var(--me-muted);
}

.maso-embed__teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.maso-embed__teacher-photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.maso-embed__teacher-name {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--me-accent);
}

.maso-embed__teacher-bio {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  color: var(--me-muted);
}

@media (max-width: 900px) {
  .maso-embed__audience-grid,
  .maso-embed__teachers-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .maso-embed__skills-grid {
    grid-template-columns: 1fr;
  }

  .maso-embed__learn-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .maso-embed__section {
    padding: 36px 0;
  }

  .maso-embed__salary-row {
    grid-template-columns: 1fr;
  }

  .maso-embed__salary-bar,
  .maso-embed__salary-label {
    grid-column: 1;
  }
}
