body.ws-redesign-course {
  margin: 0;
  overflow-x: hidden;
  color: var(--ws-ink);
  background:
    radial-gradient(circle at 7% 3%, rgba(109, 112, 255, 0.12), transparent 26%),
    radial-gradient(circle at 92% 18%, rgba(53, 91, 255, 0.08), transparent 22%),
    #f5f6fb;
}

body.ws-redesign-course *,
body.ws-redesign-course *::before,
body.ws-redesign-course *::after {
  box-sizing: border-box;
}

body.ws-redesign-course img {
  display: block;
  max-width: 100%;
}

body.ws-redesign-course a {
  color: inherit;
  text-decoration: none;
}

body.ws-redesign-course :focus-visible {
  outline: 3px solid rgba(76, 77, 218, 0.45);
  outline-offset: 4px;
}

.ws-english-main {
  padding-bottom: 22px;
}

.ws-ec-hero,
.ws-ec-section,
.ws-ec-info-card,
.ws-ec-start-card,
.ws-ec-final {
  border: 1px solid rgba(221, 224, 239, 0.94);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 56px rgba(32, 38, 91, 0.09);
}

.ws-ec-hero {
  min-height: 500px;
  padding: clamp(30px, 3.4vw, 44px);
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  overflow: hidden;
  position: relative;
}

.ws-ec-hero::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  left: -230px;
  bottom: -270px;
  border-radius: 50%;
  background: rgba(77, 78, 218, 0.06);
  pointer-events: none;
}

.ws-ec-hero-copy {
  position: relative;
  z-index: 2;
}

.ws-ec-hero h1 {
  max-width: 600px;
  margin: 0;
  color: #171c48;
  font-size: clamp(36px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.ws-ec-hero h1 em {
  display: inline;
  color: #5555d9;
  font-style: normal;
}

.ws-ec-lead {
  max-width: 500px;
  margin: 20px 0 0;
  color: #59617a;
  font-size: 14px;
  line-height: 1.55;
}

.ws-ec-checks,
.ws-ec-format-copy ul,
.ws-ec-start-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ws-ec-checks {
  max-width: 500px;
  margin-top: 22px;
  display: grid;
  gap: 8px;
}

.ws-ec-checks li {
  min-height: 40px;
  padding: 9px 15px 9px 42px;
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid #e4e6f1;
  border-radius: 14px;
  color: #3e4564;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 7px 18px rgba(34, 40, 93, 0.055);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.ws-ec-checks li::before,
.ws-ec-format-copy li::before,
.ws-ec-start-card li::before {
  content: "✓";
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #5a59dd;
  font-weight: 800;
}

.ws-ec-checks li::before {
  width: 18px;
  height: 18px;
  left: 13px;
  top: 50%;
  font-size: 9px;
  transform: translateY(-50%);
}

.ws-ec-button {
  min-height: 48px;
  margin-top: 22px;
  padding-inline: 20px;
  font-size: 11px;
  color: #fff !important;
  background: linear-gradient(135deg, #6968e8, #413fbd);
  box-shadow: 0 14px 34px rgba(72, 70, 197, 0.25), inset 0 1px rgba(255, 255, 255, 0.35);
}

.ws-ec-button:hover,
.ws-ec-button:focus-visible {
  background: linear-gradient(135deg, #5a59dd, #3432aa);
}

.ws-ec-hero-visual {
  min-height: 410px;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
  position: relative;
}

.ws-ec-hero-visual img {
  width: min(104%, 580px);
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 28px 34px rgba(44, 43, 112, 0.12));
}

.ws-ec-section {
  margin-top: 18px;
  padding: clamp(26px, 2.8vw, 38px);
}

.ws-ec-heading {
  max-width: 660px;
  margin-bottom: 18px;
}

.ws-ec-heading h2,
.ws-ec-info-card h2,
.ws-ec-start-card h2,
.ws-ec-final h2 {
  margin: 0;
  color: #171c48;
  font-size: clamp(26px, 2.25vw, 34px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.ws-ec-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ws-ec-feature-card {
  min-height: 176px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e5f0;
  border-radius: 19px;
  background: rgba(255,255,255,0.58);
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ws-ec-feature-card:hover {
  border-color: rgba(89, 88, 221, 0.36);
  box-shadow: 0 10px 24px rgba(50, 53, 125, 0.08);
}

.ws-ec-feature-card img {
  width: 70px;
  height: 70px;
  margin: -2px auto 4px;
  object-fit: contain;
}

.ws-ec-feature-card h3 {
  margin: auto 0 6px;
  color: #181d48;
  font-size: 12px;
  line-height: 1.25;
}

.ws-ec-feature-card p {
  margin: 0;
  color: #697089;
  font-size: 10px;
  line-height: 1.45;
  text-wrap: balance;
}

.ws-ec-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ws-ec-format-card {
  min-height: 330px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  border: 1px solid #e2e5f0;
  border-radius: 26px;
  background: #fbfbfe;
  box-shadow: 0 12px 30px rgba(31, 38, 84, 0.07);
}

.ws-ec-format-photo {
  min-height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: #eceef6;
}

.ws-ec-format-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-ec-format-copy {
  padding: 9px 8px 9px 0;
  display: flex;
  flex-direction: column;
}

.ws-ec-format-copy h3 {
  margin: 0 0 11px;
  color: #171c48;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.2;
}

.ws-ec-format-copy ul {
  display: grid;
  gap: 6px;
}

.ws-ec-format-copy li,
.ws-ec-start-card li {
  padding-left: 26px;
  position: relative;
  color: #59617a;
  font-size: 10.5px;
  line-height: 1.45;
}

.ws-ec-format-copy li::before,
.ws-ec-start-card li::before {
  width: 15px;
  height: 15px;
  left: 0;
  top: 2px;
  font-size: 8px;
}

.ws-ec-format-copy > p {
  margin: auto 0 0;
  padding-top: 24px;
  color: #353c5b;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.ws-ec-format-note {
  margin-top: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 21px;
  color: #fff;
  background: linear-gradient(135deg, #181d4c, #333b88);
}

.ws-ec-format-note p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.6;
}

.ws-ec-format-note .ws-ec-button {
  flex: 0 0 auto;
  margin: 0;
}

.ws-ec-heading-row {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ws-ec-text-link {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border: 1px solid #dfe2ef;
  border-radius: 999px;
  color: #282d5a !important;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 37, 85, 0.07);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ws-ec-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ws-ec-price-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e1e4f0;
  border-radius: 23px;
  background:
    radial-gradient(circle at 90% 8%, rgba(89, 88, 221, 0.11), transparent 35%),
    #fafafe;
  box-shadow: 0 12px 28px rgba(32, 38, 88, 0.07);
}

.ws-ec-price-card h3 {
  max-width: 280px;
  margin: 0;
  color: #181d48;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.18;
}

.ws-ec-price-card a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #4b4ac7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ws-ec-price-card a span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #5756d8;
}

.ws-ec-info-card,
.ws-ec-start-card {
  margin-top: 18px;
  padding: clamp(34px, 5vw, 66px);
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  overflow: hidden;
}

.ws-ec-info-card {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
}

.ws-ec-info-copy {
  position: relative;
  z-index: 2;
}

.ws-ec-info-copy > p,
.ws-ec-start-card > div > p {
  margin: 22px 0 0;
  color: #5d647d;
  font-size: 14px;
  line-height: 1.75;
}

.ws-ec-info-card > img {
  width: min(100%, 360px);
  justify-self: center;
  filter: drop-shadow(0 20px 24px rgba(64, 60, 170, 0.12));
}

.ws-ec-start-card {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
}

.ws-ec-start-card > img {
  width: min(100%, 340px);
  justify-self: center;
  filter: drop-shadow(0 18px 22px rgba(68, 65, 175, 0.12));
}

.ws-ec-start-lead {
  color: #292f5a !important;
  font-weight: 750;
}

.ws-ec-start-card ul {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.ws-ec-final {
  min-height: 370px;
  margin-top: 18px;
  padding: clamp(38px, 6vw, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 82% 10%, rgba(141, 142, 255, 0.36), transparent 27%),
    linear-gradient(135deg, #171c4a, #363ca0);
  box-shadow: 0 24px 64px rgba(31, 36, 109, 0.2);
}

.ws-ec-final::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: 7%;
  bottom: -270px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.035), 0 0 0 110px rgba(255, 255, 255, 0.025);
}

.ws-ec-final > div,
.ws-ec-final > a {
  position: relative;
  z-index: 2;
}

.ws-ec-final h2 {
  max-width: 940px;
  color: #fff;
}

.ws-ec-final p {
  max-width: 830px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.ws-ec-button-light {
  margin: 0;
  color: #262b63 !important;
  background: #fff;
  box-shadow: 0 15px 38px rgba(9, 11, 45, 0.18);
}

.ws-course-hero .ws-course-classroom {
  z-index: 1;
}

.ws-course-hero .ws-ec-hero-visual .ws-course-hero-flag {
  width: clamp(138px, 14vw, 190px);
  height: auto;
  left: 79%;
  top: 27%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(7deg);
  filter: drop-shadow(0 18px 22px rgba(47, 45, 124, 0.17));
}

.ws-course-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ws-course-copy-card {
  min-height: 148px;
  padding: 22px;
  display: flex;
  align-items: center;
  border: 1px solid #e2e5f0;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(89, 88, 221, 0.09), transparent 35%),
    rgba(255, 255, 255, 0.72);
}

.ws-course-copy-card p,
.ws-course-offers-intro {
  margin: 0;
  color: #59617a;
  font-size: 12px;
  line-height: 1.65;
}

.ws-course-intro-grid .ws-course-copy-card:only-child {
  grid-column: 1 / -1;
}

.ws-course-levels li {
  min-height: 36px;
  display: flex;
  align-items: center;
}

.ws-course-offers-intro {
  max-width: 920px;
  margin: -3px 0 22px;
  font-size: 13px;
}

.ws-course-offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ws-course-offer-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid #e2e5f0;
  border-radius: 19px;
  background: #fbfbfe;
  box-shadow: 0 9px 24px rgba(31, 38, 84, 0.055);
}

.ws-course-offer-card h3 {
  margin: 0 0 10px;
  color: #181d48;
  font-size: 14px;
  line-height: 1.3;
}

.ws-course-offer-card p {
  margin: 0;
  color: #697089;
  font-size: 10.5px;
  line-height: 1.55;
}

@media (max-width: 1240px) {
  .ws-ec-hero {
    grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  }
}

@media (max-width: 940px) {
  .ws-ec-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ws-ec-hero-visual {
    min-height: 430px;
  }

  .ws-ec-hero-visual img {
    width: min(105%, 690px);
    margin: -4% 0 -12%;
  }

  .ws-ec-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ws-course-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ws-ec-format-card {
    grid-template-columns: 1fr;
  }

  .ws-ec-format-photo {
    min-height: 260px;
  }

  .ws-ec-format-copy {
    padding: 8px 10px 14px;
  }

  .ws-ec-price-grid {
    grid-template-columns: 1fr;
  }

  .ws-ec-price-card {
    min-height: 150px;
  }

  .ws-ec-info-card,
  .ws-ec-start-card {
    grid-template-columns: 1fr;
  }

  .ws-ec-info-card > img,
  .ws-ec-start-card > img {
    width: min(64vw, 340px);
    grid-row: 1;
  }

  .ws-ec-final {
    grid-template-columns: 1fr;
  }

  .ws-ec-final .ws-ec-button {
    width: fit-content;
  }
}

@media (max-width: 700px) {
  .ws-ec-hero,
  .ws-ec-section,
  .ws-ec-info-card,
  .ws-ec-start-card,
  .ws-ec-final {
    border-radius: 26px;
  }

  .ws-ec-hero {
    padding: 28px 20px 20px;
    gap: 12px;
  }

  .ws-ec-hero h1 {
    font-size: clamp(35px, 9.6vw, 44px);
    letter-spacing: -0.055em;
  }

  .ws-ec-lead {
    font-size: 14px;
  }

  .ws-ec-hero-visual {
    min-height: 315px;
  }

  .ws-ec-hero-visual img {
    width: 112%;
    margin: -4% -6% -16%;
  }

  .ws-ec-section {
    padding: 30px 18px;
  }

  .ws-course-intro-grid,
  .ws-course-offer-grid {
    grid-template-columns: 1fr;
  }

  .ws-course-copy-card,
  .ws-course-offer-card {
    min-height: auto;
  }

  .ws-course-hero .ws-ec-hero-visual .ws-course-hero-flag {
    width: 128px;
    left: 78%;
    top: 25%;
  }

  .ws-ec-heading {
    margin-bottom: 24px;
  }

  .ws-ec-heading h2,
  .ws-ec-info-card h2,
  .ws-ec-start-card h2,
  .ws-ec-final h2 {
    font-size: clamp(27px, 7.5vw, 36px);
  }

  .ws-ec-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ws-ec-feature-card {
    min-height: 190px;
    padding: 14px;
    border-radius: 19px;
  }

  .ws-ec-feature-card img {
    width: 72px;
    height: 72px;
  }

  .ws-ec-feature-card h3 {
    font-size: 14px;
  }

  .ws-ec-feature-card p {
    font-size: 11px;
  }

  .ws-ec-format-grid {
    grid-template-columns: 1fr;
  }

  .ws-ec-format-card {
    min-height: auto;
    border-radius: 21px;
  }

  .ws-ec-format-photo {
    min-height: 260px;
  }

  .ws-ec-format-copy > p {
    margin-top: 22px;
  }

  .ws-ec-format-note {
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .ws-ec-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ws-ec-start-card ul {
    grid-template-columns: 1fr;
  }

  .ws-ec-info-card,
  .ws-ec-start-card,
  .ws-ec-final {
    padding: 34px 22px;
  }
}

@media (max-width: 430px) {
  .ws-ec-feature-grid {
    grid-template-columns: 1fr;
  }

  .ws-ec-feature-card {
    min-height: 185px;
  }

  .ws-ec-feature-card img {
    width: 76px;
    height: 76px;
  }

  .ws-ec-hero-visual {
    min-height: 250px;
  }

  .ws-course-hero .ws-ec-hero-visual .ws-course-hero-flag {
    width: 105px;
  }

  .ws-ec-format-photo {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-ec-feature-card {
    transition: none;
  }
}
