.free-page {
  margin: 0;
  background: #f6f3ff;
  color: #20233f;
}

.free-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.free-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 22px;
  font-size: 14px;
  font-weight: 800;
}

.free-nav a,
.free-card a {
  color: #5130c9;
}

.free-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #dacffc;
  border-radius: 28px;
  background: linear-gradient(125deg, #fff 0%, #f4ecff 58%, #e4faff 100%);
  box-shadow: 0 20px 50px rgba(61, 48, 117, 0.1);
}

.free-hero > div {
  padding: clamp(28px, 5vw, 64px);
}

.free-hero img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}

.free-eyebrow {
  margin: 0 0 12px;
  color: #6e3bce;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.free-hero h1 {
  max-width: 670px;
  margin: 0;
  font-size: clamp(36px, 5.5vw, 66px);
  line-height: 1.06;
}

.free-lead {
  max-width: 680px;
  margin: 22px 0 28px;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.free-main-cta,
.free-footer-cta .primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  text-align: center;
}

.free-note {
  max-width: 650px;
  margin: 17px 0 0;
  color: #4d5470;
  font-size: 14px;
  line-height: 1.5;
}

.free-section {
  margin-top: 38px;
}

.free-section h2 {
  margin: 0 0 20px;
  font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.16;
}

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

.free-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid #dad5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(61, 48, 117, 0.07);
}

.free-number {
  color: #8050da;
  font-size: 13px;
  font-weight: 900;
}

.free-card h3 {
  margin: 12px 0 10px;
  font-size: 21px;
}

.free-card p {
  min-height: 72px;
  margin: 0 0 16px;
  color: #4d5470;
  line-height: 1.5;
}

.free-card a {
  font-weight: 850;
  text-underline-offset: 3px;
}

.free-teacher {
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px solid #d9d0f4;
  border-radius: 18px;
  background: #fff;
}

.free-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #cdbcf4;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff 0%, #f1eaff 58%, #e9fbff 100%);
  box-shadow: 0 14px 34px rgba(61, 48, 117, 0.08);
}

.free-offer h2 {
  margin-bottom: 12px;
}

.free-offer-price {
  margin: 0 0 18px;
  color: #383d58;
}

.free-offer-price strong {
  color: #4e2db6;
  font-size: clamp(26px, 3vw, 38px);
}

.free-offer ul {
  margin: 0;
  padding-left: 22px;
  line-height: 1.75;
}

.free-offer-note {
  margin: 16px 0 0;
  color: #555c73;
  font-size: 14px;
}

.free-offer-actions {
  display: grid;
  gap: 14px;
  min-width: 245px;
  text-align: center;
}

.free-offer-actions > a:not(.primary-button),
.free-result-purchase {
  color: #5130c9;
  font-weight: 850;
  text-underline-offset: 3px;
}

.free-teacher summary {
  color: #4c2e9e;
  font-weight: 850;
  cursor: pointer;
}

.free-teacher p {
  margin: 16px 0;
  color: #4d5470;
  line-height: 1.5;
}

.free-teacher ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  margin: 0;
  padding-left: 20px;
}

.free-teacher a {
  color: #5130c9;
  text-underline-offset: 3px;
}

.free-test {
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid #d9d0f4;
  border-radius: 26px;
  background: #fff;
}

.free-test-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 10px;
}

.free-test-intro h2 {
  margin-bottom: 0;
}

.free-test-intro > p {
  max-width: 310px;
  color: #545b72;
  font-size: 14px;
  line-height: 1.5;
}

.free-question {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #ece8f6;
}

.free-question legend {
  width: 100%;
  padding: 0 0 12px;
  font-weight: 850;
}

.free-question label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
  padding: 10px 14px;
  border: 1px solid #ddd4f2;
  border-radius: 12px;
  background: #faf8ff;
  cursor: pointer;
}

.free-question label:has(input:checked) {
  border-color: #7440d5;
  background: #eee6ff;
}

.free-question input {
  accent-color: #6231cd;
}

#freeQuiz > button {
  margin-top: 24px;
}

.free-result {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #c9e8dd;
  border-radius: 18px;
  background: #effaf6;
  line-height: 1.5;
}

.free-result h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.free-result p {
  margin: 8px 0;
}

.free-result .primary-button {
  display: inline-flex;
  margin-top: 12px;
}

.free-result-purchase {
  display: block;
  margin-top: 14px;
}

.free-share-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 12px 0 0 12px;
  padding: 10px 16px;
  border: 1px solid #7342c9;
  border-radius: 10px;
  background: #fff;
  color: #4e2b9f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.free-share-button:focus-visible {
  outline: 3px solid #7342c9;
  outline-offset: 3px;
}

.free-footer-cta {
  padding: 30px;
  border-radius: 24px;
  background: #eae2ff;
  text-align: center;
}

.free-footer-cta p {
  max-width: 650px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

@media (max-width: 850px) {
  .free-offer {
    grid-template-columns: 1fr;
  }

  .free-offer-actions {
    min-width: 0;
  }

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

  .free-hero img {
    max-height: 340px;
  }

  .free-grid {
    grid-template-columns: 1fr;
  }

  .free-card {
    min-height: 0;
  }

  .free-card p {
    min-height: 0;
  }

  .free-teacher ul {
    grid-template-columns: 1fr;
  }

  .free-test-intro {
    display: block;
  }
}

@media (max-width: 520px) {
  .free-shell {
    width: min(100% - 20px, 1120px);
  }

  .free-nav {
    font-size: 12px;
  }

  .free-hero,
  .free-test {
    border-radius: 18px;
  }

  .free-hero > div {
    padding: 24px;
  }

  .free-main-cta {
    width: 100%;
  }
}
