.course-success-page {
  width: 100%;
  max-width: var(--mobile-max-width);
  min-height: 100dvh;
  margin: 0 auto;

  padding:
    calc(var(--safe-top) + 8px)
    clamp(14px, 4vw, 18px)
    calc(var(--safe-bottom) + 14px);

  background:
    radial-gradient(circle at 50% 0%, rgba(232, 255, 240, 0.72), transparent 32%),
    linear-gradient(180deg, #fffefc 0%, #ffffff 100%);
}

/* HERO */

.course-success-hero {
  text-align: center;
  padding-top: 2px;
}

.course-success-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin: 0 auto 6px;
}

.course-success-check {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background:
    radial-gradient(circle, #ffffff 0 42%, transparent 43%),
    linear-gradient(135deg, #dff9e9 0%, #c9f2d7 100%);

  box-shadow:
    0 9px 20px rgba(8, 169, 87, 0.16),
    inset 0 0 0 8px rgba(8, 169, 87, 0.08);
}

.course-success-check span {
  color: #07984e;
  font-size: 35px;
  line-height: 1;
  font-weight: 900;
}

.course-success-hero h1 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(30px, 7.7vw, 38px);
  line-height: 1.03;
  letter-spacing: -1px;
  font-weight: 950;
}

.course-success-hero h1 span {
  display: block;
  margin-top: 4px;
  color: #07984e;
  font-size: clamp(22px, 5.8vw, 29px);
  letter-spacing: -0.6px;
}

.course-success-hero p {
  max-width: 330px;
  margin: 9px auto 0;
  color: #6d7085;
  font-size: clamp(12.5px, 3.35vw, 14.5px);
  line-height: 1.42;
  font-weight: 560;
}

/* CONTENT */

.course-success-content {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.course-access-card,
.course-action-card,
.course-modules-card,
.course-next-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(236, 236, 242, 0.96);
  box-shadow: 0 10px 24px rgba(7, 20, 63, 0.06);
}

/* ACCESS CARD */

.course-access-card {
  padding: 13px;

  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 13px;
  align-items: center;

  background:
    radial-gradient(circle at 0% 100%, rgba(255, 47, 117, 0.07), transparent 38%),
    linear-gradient(135deg, #fff8f1 0%, #fff0f5 100%);
}

.course-access-visual {
  position: relative;
  min-height: 120px;
}

.success-course-book {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 75px;
  height: 108px;
  padding: 13px 7px;

  border-radius: 4px 9px 9px 4px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 7px, transparent 7px),
    linear-gradient(135deg, #081743 0%, #142766 100%);

  box-shadow: 0 12px 20px rgba(7, 20, 63, 0.18);
}

.success-course-book p {
  color: #ffffff;
  font-family: var(--font-title);
  text-align: center;
  font-size: 11.5px;
  line-height: 1.1;
}

.success-course-book img {
  width: 22px;
  height: 22px;
  margin-top: 8px;
}

.success-course-phone {
  position: absolute;
  right: 0;
  bottom: 0;

  width: 52px;
  height: 88px;

  border-radius: 12px;
  border: 4px solid #1f2130;
  background: #fff9fb;
  box-shadow: 0 10px 20px rgba(7, 20, 63, 0.13);
  overflow: hidden;
}

.phone-top {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: #1f2130;
  margin: 5px auto 7px;
}

.course-play-circle {
  width: 31px;
  height: 31px;
  margin: 7px auto;
  border-radius: 50%;

  display: grid;
  place-items: center;

  background: #ff5b8b;
  color: #ffffff;
  font-size: 12px;
}

.course-line {
  height: 7px;
  margin: 6px 8px;
  border-radius: 999px;
  background: #ffdce7;
}

.course-line.short {
  width: 25px;
}

.course-access-info h2 {
  color: var(--color-navy);
  font-size: 19px;
  line-height: 1.08;
  font-weight: 950;
}

.course-access-info p {
  margin-top: 7px;
  color: #4b5169;
  font-size: 12.2px;
  line-height: 1.35;
  font-weight: 620;
}

.course-access-tags {
  margin-top: 9px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.course-access-tags span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #ff3d7d;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 900;
}

/* ACTION CARD */

.course-action-card {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.start-course-button,
.download-workbook-button {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  font-size: 14px;
  line-height: 1.1;
  font-weight: 950;
}

.start-course-button {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(255, 47, 117, 0.22);
}

.download-workbook-button {
  background: linear-gradient(135deg, #0bb95e 0%, #02994e 100%);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(8, 169, 87, 0.2);
}

.start-course-button span,
.download-workbook-button span {
  font-size: 19px;
}

.course-action-card p {
  text-align: center;
  color: #6d7085;
  font-size: 11.3px;
  line-height: 1.3;
  font-weight: 650;
}

/* MODULES */

.course-modules-card {
  padding: 13px;
}

.course-modules-card h2 {
  text-align: center;
  color: var(--color-navy);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 950;
}

.course-modules-list {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.course-module-item {
  min-height: 78px;
  padding: 10px;
  border-radius: 15px;
  background: #fff8fa;
  border: 1px solid #f5edf1;

  display: flex;
  gap: 8px;
}

.course-module-item > span {
  width: 25px;
  height: 25px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  background: #fff0f4;
  color: #ff3d7d;
  font-size: 12px;
  font-weight: 950;
}

.course-module-item h3 {
  color: var(--color-navy);
  font-size: 11.2px;
  line-height: 1.12;
  font-weight: 950;
}

.course-module-item p {
  margin-top: 4px;
  color: #6d7085;
  font-size: 9.7px;
  line-height: 1.25;
  font-weight: 600;
}

/* NEXT */

.course-next-card {
  padding: 12px;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;

  background: linear-gradient(135deg, #f4fff8 0%, #eefbf2 100%);
}

.course-next-card h2 {
  color: var(--color-navy);
  font-size: 14.5px;
  line-height: 1.1;
  font-weight: 950;
}

.course-next-card p {
  margin-top: 4px;
  color: #6d7085;
  font-size: 10.7px;
  line-height: 1.25;
  font-weight: 600;
}

.course-next-card button {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 999px;

  background: #ffffff;
  color: #07984e;
  border: 1px solid rgba(8, 169, 87, 0.18);

  font-size: 11px;
  line-height: 1;
  font-weight: 950;
}

/* FOOTER */

.course-success-footer {
  text-align: center;
  padding-top: 2px;
}

.course-success-footer p {
  color: #6d7085;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 650;
}

.course-success-footer div {
  margin-top: 7px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;

  color: #8b8e9f;
  font-size: 10px;
}

.course-success-footer a {
  color: #6d7085;
  font-weight: 650;
}

/* RESPONSIVE */

@media (max-width: 414px) and (max-height: 880px) {
  .course-success-page {
    padding-left: 13px;
    padding-right: 13px;
  }

  .course-success-check {
    width: 50px;
    height: 50px;
  }

  .course-success-check span {
    font-size: 31px;
  }

  .course-success-hero h1 {
    font-size: 29px;
  }

  .course-success-hero h1 span {
    font-size: 23px;
  }

  .course-access-card {
    grid-template-columns: 108px 1fr;
  }

  .course-access-visual {
    min-height: 110px;
  }

  .success-course-book {
    width: 66px;
    height: 98px;
  }

  .success-course-phone {
    width: 46px;
    height: 80px;
  }

  .course-access-info h2 {
    font-size: 17px;
  }

  .course-modules-list {
    gap: 8px;
  }
}

@media (max-width: 374px), (max-height: 760px) {
  .course-access-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .course-access-visual {
    width: 130px;
    margin: 0 auto;
  }

  .course-access-tags {
    justify-content: center;
  }

  .course-modules-list {
    grid-template-columns: 1fr;
  }

  .course-next-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}