/* ══════════════════════════════════════════════════════════
   Speak Up Chinese — Страница «Курс с Нуля»
   Зависит от: css/styles.css (хедер, футер, форма, контейнер)
   ══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.cz-hero {
  position: relative;
  padding-top: 0;
  padding-bottom: 180px;
  overflow: hidden;
  background: transparent;
}

/* Бежевый фон ниже 724px (под план-карточкой) */
.cz-hero::after {
  content: '';
  position: absolute;
  top: 724px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FEFCF9;
  z-index: 0;
  pointer-events: none;
}

/* Белый overlay слева для читаемости заголовка */
.cz-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 724px;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.72) 0%,
    rgba(255,255,255,0.30) 45%,
    transparent 65%
  );
  pointer-events: none;
}

/* cz-hero__bg скрыт — фон идёт с body (fixed) */
.cz-hero__bg {
  display: none;
}

.cz-hero .container {
  position: relative;
  z-index: 2;
}

/* Breadcrumb + заголовок */
.cz-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 380px;
  max-width: 768px;
  margin-bottom: 60px;
  position: relative;
}

.cz-hero__stars {
  position: absolute;
  left: 379px;
  top: 422px;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  pointer-events: none;
}

.cz-hero__stars img:last-child { margin-top: -3px; }

.cz-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4A5565;
  font-size: 18px;
  font-weight: 300;
  line-height: 30px;
}

.cz-breadcrumb img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cz-breadcrumb strong {
  font-weight: 600;
  color: #4A5565;
}

.cz-hero__title {
  font-size: 64px;
  font-weight: 800;
  color: #0C3249;
  line-height: 70px;
  letter-spacing: -0.5px;
}

/* ── Plan Card ────────────────────────────────────────────── */
.cz-plan {
  position: relative;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 40px;
  padding: 50px 260px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

/* Декоративная иллюстрация (правый верхний угол карточки) */
.cz-plan__illus {
  position: absolute;
  top: 39px;
  right: 109px;
  width: 294px;
  height: 235px;
  pointer-events: none;
}


/* Контентная часть (левая) */
.cz-plan__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 780px;
}

.cz-plan__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #FFA7B0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  width: fit-content;
}

.cz-plan__title {
  font-size: 34px;
  font-weight: 800;
  color: #0C3249;
  line-height: 36px;
  letter-spacing: -1px;
}

.cz-plan__desc {
  font-size: 16px;
  font-weight: 300;
  color: #4A5565;
  line-height: 26px;
  max-width: 600px;
}

/* Таблица характеристик курса */
.cz-plan__table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 30px; /* badge→desc gap 20px + this = 50px total before table, matching Figma */
}

.cz-plan__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 9px;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
  line-height: 20px;
}

.cz-plan__row:last-child {
  border-bottom: none;
}

.cz-plan__row-label {
  font-weight: 300;
  color: #6A7282;
  white-space: nowrap;
}

.cz-plan__row-value {
  font-weight: 700;
  font-size: 16px;
  color: #8CC4F8;
  text-align: right;
}

.cz-plan__row-value--red {
  color: rgba(207, 3, 29, 0.6);
}

/* Кнопка «Записаться на курс» */
.cz-plan__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 282px;
  height: 54px;
  padding: 4px 30px;
  border-radius: 44px;
  border: 1px solid #CF031D;
  background-color: #CF031D;
  background-image: linear-gradient(to right, #fff 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% center;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.45s ease, color 0.45s ease;
  flex-shrink: 0;
}

.cz-plan__btn:hover {
  background-position: 0% center;
  color: #CF031D;
}

.cz-plan__btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Methodology ──────────────────────────────────────────── */
.cz-method {
  padding: 130px 0 180px;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.cz-method__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 100px;
  margin-bottom: 100px;
}

.cz-method__photo {
  position: relative;
  width: 664px;
  height: 426px;
  border-radius: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.cz-method__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Градиентный overlay на фото */
.cz-method__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(146.873deg, rgba(131,181,255,0.5) 14.9%, rgba(255,70,88,0.5) 87.3%);
  mix-blend-mode: screen;
  border-radius: 20px;
}

.cz-method__text {
  width: 536px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
}

/* Декоративная волнистая линия под частью заголовка */
.cz-method__title-wrap {
  position: relative;
}

.cz-method__title {
  font-size: 44px;
  font-weight: 800;
  color: #0C3249;
  line-height: 60px;
  letter-spacing: -0.5px;
}

.cz-method__result-line {
  white-space: nowrap;
}

.cz-method__result-hl {
  position: relative;
  display: inline-block;
  color: #fff;
  z-index: 0;
}

.cz-method__result-badge {
  position: absolute;
  top: calc(50% + 5px);
  left: 50%;
  transform: translate(-50%, -50%) rotate(177.22deg) scaleY(-1);
  width: 247px;
  height: 58px;
  z-index: -1;
  pointer-events: none;
}

.cz-method__texts {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cz-method__texts p {
  font-size: 18px;
  font-weight: 400;
  color: #9C9EA7;
  line-height: 25px;
}

.cz-method__texts strong {
  font-weight: 700;
  color: #0C3249;
}

/* Cards row */
.cz-method__cards {
  display: flex;
  gap: 33px;
  align-items: stretch;
}

.cz-method__card {
  flex: 1;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 40px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
}

/* Иконки карточек */
.cz-card-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.cz-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cz-method__card-title {
  font-size: 34px;
  font-weight: 800;
  color: #0C3249;
  line-height: 36px;
  letter-spacing: -1px;
}

.cz-method__card-desc {
  font-size: 14px;
  font-weight: 300;
  color: #4A5565;
  line-height: 20px;
  flex: 1;
}

/* Кнопка «Узнать подробнее» */
.cz-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding: 4px 30px;
  border-radius: 44px;
  border: 1px solid #D1D5DC;
  background-image: linear-gradient(to right, #fff 50%, #DBEFFF 50%);
  background-size: 200% 100%;
  background-position: 0% center;
  color: #101828;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: background-position 0.45s ease;
  width: fit-content;
  flex-shrink: 0;
}

.cz-btn-outline:hover {
  background-position: 100% center;
}

.cz-btn-outline img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.cz-btn-outline:hover img {
  transform: rotate(-45deg);
}

/* ── Description / Stats ──────────────────────────────────── */
.cz-desc {
  padding: 0 0 100px;
  position: relative;
  background: #ffffff;
  z-index: 1;
}

/* Верхняя белая карточка: статистика */
.cz-stats {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 22px 0 rgba(78, 134, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 100px;
  height: 168px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
}

.cz-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
}

.cz-stats__item:first-child {
  width: 239px;
}

.cz-stats__item p {
  font-size: 24px;
  font-weight: 500;
  color: #0C3249;
  line-height: 20px;
  margin: 0;
  transition: color 0.3s ease;
}

.cz-stats__item strong {
  font-size: 34px;
  font-weight: 800;
  color: #0C3249;
  line-height: 28px;
  letter-spacing: -1px;
  display: block;
  transition: color 0.3s ease;
}

/* Активная вкладка — весь текст красный */
.cz-stats__item.is-active p,
.cz-stats__item.is-active strong {
  color: #CF031D;
}

.cz-stats__divider {
  flex-shrink: 0;
  width: 5px;
  height: 81px;
  overflow: visible;
}

.cz-stats__divider img {
  display: block;
  width: 5px;
  height: 81px;
}

/* Нижняя голубая карточка: описание */
.cz-info {
  background: #F6FDFF;
  border-radius: 18px;
  box-shadow: 0 8px 22px 0 rgba(78, 134, 255, 0.10);
  padding: 90px 100px 80px;
  min-height: 630px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: -46px;
  z-index: 1;
  overflow: hidden;
}

.cz-info__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cz-info__block h3 {
  font-size: 34px;
  font-weight: 800;
  color: #0C3249;
  line-height: 36px;
  letter-spacing: -1px;
}

.cz-info__block p {
  font-size: 24px;
  font-weight: 500;
  color: #0C3249;
  line-height: 24px;
  max-width: 532px;
}

.cz-info__block:last-child p {
  max-width: 448px;
}

.cz-info__arrow {
  flex-shrink: 0;
  width: 81px;
  height: 5px;
  overflow: visible;
}

.cz-info__arrow img {
  display: block;
  width: 81px;
  height: 5px;
}

/* Вкладки: панели */
.cz-info__tab {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  transition: opacity 0.2s ease;
}

.cz-info__tab.is-active {
  display: flex;
}

/* Декоративная стрелка между карточками */
.cz-desc__arrow-decor {
  position: absolute;
  left: 207.89px;
  top: 153.14px;
  width: 38.728px;
  height: 55.86px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
  perspective: 600px;
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cz-desc__arrow-decor img {
  width: 53.562px;
  height: 35.111px;
  transform: rotateY(0deg) rotate(93.96deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Круглая красная кнопка (scroll/подробнее) */
.cz-desc__scroll-btn {
  position: absolute;
  bottom: 146px;
  right: 46px;
  width: 56px;
  height: 56px;
  border-radius: 80px;
  background: #CF031D;
  border: 1px solid #CF031D;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
  gap: 5px;
  overflow: hidden;
  color: white;
  transition: width 0.4s ease, background 0.4s ease, color 0.3s ease, opacity 0.35s ease;
}

.cz-desc__scroll-btn:hover {
  width: 152px;
  background: #FCF9F4;
  color: #CF031D;
}

.cz-desc__scroll-btn__label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cz-desc__scroll-btn:hover .cz-desc__scroll-btn__label {
  opacity: 1;
  transition: opacity 0.2s ease 0.2s;
}

.cz-desc__scroll-btn svg {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
}

/* ── Modal ────────────────────────────────────────────────── */
.cz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(207, 3, 29, 0.10);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}

.cz-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.cz-modal {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 40px;
  width: 100%;
  max-width: 1300px;
  position: relative;
  padding: 50px 160px 80px;
  transform: translateY(30px);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.cz-modal-overlay.is-open .cz-modal {
  transform: translateY(0);
}

.cz-modal__close {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #F3F4F6;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1;
}

.cz-modal__close:hover {
  background: #E5E7EB;
}

.cz-modal__body {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.cz-modal__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cz-modal__title {
  font-size: 34px;
  font-weight: 800;
  color: #0C3249;
  line-height: 36px;
  letter-spacing: -1px;
}

.cz-modal__desc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cz-modal__desc p {
  font-size: 16px;
  font-weight: 300;
  color: #4A5565;
  line-height: 26px;
  max-width: 600px;
}

.cz-modal__steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cz-modal__step {
  border: 1px solid #E5E7EB;
  border-radius: 40px;
  padding: 60px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cz-modal__step-num {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.cz-modal__step-num img {
  display: block;
  width: 52px;
  height: 52px;
}

.cz-modal__step-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.cz-modal__step-title {
  font-size: 20px;
  font-weight: 800;
  color: #0C3249;
  line-height: 28px;
}

.cz-modal__topic {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cz-modal__topic-name {
  font-family: 'SourceHanSerifTC', 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #4A5565;
  line-height: normal;
}

.cz-modal__topic-desc {
  font-size: 16px;
  font-weight: 300;
  color: #4A5565;
  line-height: 26px;
  max-width: 600px;
}

.cz-modal__exam-title {
  font-size: 16px;
  font-weight: 800;
  color: #8CC4F8;
  line-height: normal;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.cz-faq {
  padding: 128px 0;
  background: #F3F9FF;
  position: relative;
  z-index: 1;
}

.cz-faq .container {
  max-width: 1300px;
  padding: 0 160px;
}

.cz-faq__title-wrap {
  position: relative;
  margin-bottom: 40px;
}

.cz-faq__title {
  font-size: 44px;
  font-weight: 800;
  color: #0C3249;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cz-faq__title-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 44px;
}

.cz-faq__title-badge svg {
  position: absolute;
  inset: -6px -10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.cz-faq__title-badge > span {
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

/* Accordion */
.cz-faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cz-faq__item {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.cz-faq__item:hover {
  box-shadow: 0 0 0 4px rgba(145, 200, 250, 0.50);
}

.cz-faq__item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 20px;
  font-weight: 400;
  color: #0C3249;
  line-height: 28px;
  user-select: none;
  font-family: inherit;
}

.cz-faq__item__btn::after {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background: url('../assets/course-zero/chevron.svg') center / 16px 7.2px no-repeat;
  flex-shrink: 0;
  transform: perspective(200px) rotateX(0deg);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cz-faq__item.is-open .cz-faq__item__btn::after {
  transform: perspective(200px) rotateX(180deg);
}

.cz-faq__item-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 32px;
  font-size: 16px;
  font-weight: 400;
  color: #4A5565;
  line-height: 26px;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.cz-faq__item.is-open .cz-faq__item-body {
  max-height: 400px;
  padding: 0 32px 24px;
}

/* body: fixed hero background — виден через прозрачные секции */
body { background: url('../assets/course-zero/hero-bg.png') center top / cover no-repeat fixed; }

/* form section: убираем фон, body-фон просвечивает */
.form { background: none; }
