/**
 * Страница для AI-креаторов (/creators), эталон creators.html.
 * Значения — токены сайта; тема берётся из общего переключателя, шапка и подвал общие.
 */

.cr {
  --cr-gap: 18px;
}

.cr-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.cr-nowrap {
  white-space: nowrap;
}

/* заголовки */
.cr-h1 {
  max-width: 15em;
  margin: 0 0 22px;
  font-size: clamp(34px, 6.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
}

.cr-h2 {
  max-width: 20em;
  margin: 0;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
}

.cr-h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 700;
}

.cr-sec {
  padding: 72px 0 0;
}

.cr-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.cr-head p {
  max-width: 36em;
  margin: 0;
  color: var(--tx2);
  font-size: 19px;
}

/* герой */
.cr-hero {
  padding-top: 48px;
}

.cr-lead {
  max-width: 38em;
  margin: 0 0 32px;
  color: var(--tx2);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
}

.cr-lead b {
  color: var(--tx);
  font-weight: 700;
}

.cr-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cr-hint {
  max-width: 30em;
  margin: 18px 0 0;
  color: var(--tx2);
  font-size: 15px;
}

/* шаги */
.cr-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-step {
  position: relative;
  padding: 0 28px 0 0;
}

.cr-step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--acc);
  color: var(--acc-ink);
  font: 700 19px/1 var(--mono, ui-monospace, Menlo, Consolas, monospace);
}

.cr-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 21px;
  right: 0;
  left: 44px;
  height: 2px;
  background: var(--line);
}

.cr-step .cr-h3 {
  margin-bottom: 8px;
}

.cr-step p {
  max-width: 20em;
  margin: 0;
  color: var(--tx2);
  font-size: 17px;
}

/* ступени покрытия */
.cr-stairs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
}

.cr-stair {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 22px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.cr-stair:nth-child(1) {
  min-height: 330px;
}

.cr-stair:nth-child(2) {
  min-height: 385px;
}

.cr-stair:nth-child(3) {
  min-height: 440px;
  border-color: var(--acc);
}

.cr-stair:nth-child(4) {
  min-height: 495px;
  border-color: var(--acc);
  background: var(--acc);
  color: var(--acc-ink);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--acc) 35%, transparent);
}

.cr-stair__name {
  color: var(--tx2);
  font-weight: 700;
  font-size: 17px;
}

.cr-stair__big {
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.cr-stair__big small {
  display: block;
  margin-top: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  opacity: .75;
}

.cr-stair p {
  margin: 0;
  color: var(--tx2);
  font-size: 16.5px;
  line-height: 1.5;
}

.cr-stair__cond {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1.5px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.cr-stair__cond span {
  display: block;
  margin-bottom: 2px;
  color: var(--tx2);
  font-weight: 500;
  font-size: 14px;
}

.cr-stair:nth-child(4) .cr-stair__big {
  font-family: inherit;
  letter-spacing: -.03em;
}

.cr-stair:nth-child(4) .cr-stair__name,
.cr-stair:nth-child(4) p,
.cr-stair:nth-child(4) .cr-stair__cond span {
  color: color-mix(in srgb, var(--acc-ink) 82%, transparent);
}

.cr-stair:nth-child(4) .cr-stair__cond {
  border-color: color-mix(in srgb, var(--acc-ink) 30%, transparent);
}

.cr-note {
  max-width: 44em;
  margin: 22px 0 0;
  color: var(--tx2);
  font-size: 16px;
}

.cr-note b {
  color: var(--tx);
}

/* доход с рефералов и шаблонов */
.cr-earn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.cr-earn--gap,
.cr-two--gap {
  margin-top: 22px;
}

.cr-earn__col {
  padding: 28px 30px;
}

.cr-earn__col + .cr-earn__col {
  border-left: 1.5px solid var(--line);
}

.cr-earn__name {
  color: var(--tx2);
  font-size: 16px;
  font-weight: 700;
}

.cr-earn__num {
  margin: 10px 0 12px;
  color: var(--acc);
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.05em;
}

.cr-earn__col p {
  max-width: 24em;
  margin: 0;
  color: var(--tx2);
  font-size: 17px;
}

.cr-earn-ex {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 46em;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

.cr-earn-ex b {
  font-weight: 700;
}

/* что просим */
.cr-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--cr-gap);
}

.cr-box {
  padding: 28px 28px 24px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.cr-box .cr-h3 {
  margin-bottom: 16px;
}

.cr-box ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cr-box li {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  line-height: 1.45;
}

.cr-box li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}

.cr-box li::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  width: 8px;
  height: 5px;
  border-bottom: 2.5px solid var(--ok);
  border-left: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

.cr-box--not li::before {
  background: var(--acc-bg);
}

.cr-box--not li::after {
  top: 11px;
  left: 6px;
  width: 10px;
  height: 0;
  border-left: 0;
  border-bottom-color: var(--acc);
  transform: none;
}

.cr-box li b {
  font-weight: 700;
}

.cr-box li span {
  display: block;
  margin-top: 2px;
  color: var(--tx2);
  font-size: 15.5px;
}

/* цены */
.cr-prices {
  margin: 0;
  padding: 8px 28px;
  list-style: none;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.cr-prices li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
}

.cr-prices li + li {
  border-top: 1.5px solid var(--line);
}

.cr-prices__what {
  flex: 1;
  font-weight: 600;
  font-size: 18px;
}

.cr-prices__what small {
  display: block;
  margin-top: 2px;
  color: var(--tx2);
  font-weight: 500;
  font-size: 15px;
}

.cr-prices__val {
  color: var(--acc);
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.cr-prices__val i {
  margin-right: 6px;
  color: var(--tx2);
  font-family: inherit;
  font-style: normal;
  font-size: .55em;
  font-weight: 600;
  letter-spacing: 0;
}

.cr-prices__note {
  max-width: 46em;
  margin: 16px 0 0;
  color: var(--tx2);
  font-size: 15px;
}

/* кого ищем */
.cr-who {
  max-width: 44em;
  font-size: 19px;
  line-height: 1.6;
}

.cr-who p {
  margin: 0;
}

.cr-who p + p {
  margin-top: 14px;
  color: var(--tx2);
  font-size: 17px;
}

/* вопросы */
.cr-faq {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  border-top: 1.5px solid var(--line);
}

.cr-faq details {
  border-bottom: 1.5px solid var(--line);
}

.cr-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}

.cr-faq summary::-webkit-details-marker {
  display: none;
}

.cr-faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--acc);
  border-bottom: 2.5px solid var(--acc);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}

.cr-faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.cr-faq details p {
  max-width: 40em;
  margin: 0;
  padding: 0 40px 24px 0;
  color: var(--tx2);
  font-size: 17px;
}

.cr-faq details p b {
  color: var(--tx);
}

/* форма */
.cr-formwrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.cr-formwrap .cr-head {
  margin-bottom: 0;
}

.cr-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.cr-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-field label {
  font-weight: 600;
  font-size: 16px;
}

.cr-field .inp {
  min-height: 52px;
  font-size: 17px;
}

.cr-field .inp[aria-invalid="true"],
.cr-field:has(input[aria-invalid="true"]) .cr-consent {
  border-color: var(--err);
}

.cr-field:has(input[aria-invalid="true"]) .cr-consent {
  color: var(--err);
}

.cr-fail {
  margin: 0;
  color: var(--err);
  font-size: 15px;
  font-weight: 500;
}

.cr-fail[hidden] {
  display: none;
}

.cr-msg {
  display: none;
  color: var(--err);
  font-size: 14.5px;
  font-weight: 500;
}

.cr-field:has([aria-invalid="true"]) .cr-msg {
  display: block;
}

.cr-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--tx2);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
}

.cr-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--acc);
}

.cr-consent a {
  color: var(--acc);
}

.cr-form .btn {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}

.cr-sent {
  padding: 34px 30px;
  border: 1.5px solid var(--ok);
  border-radius: 28px;
  background: var(--surface);
}

.cr-sent[hidden] {
  display: none;
}

.cr-sent .cr-h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.cr-sent p {
  margin: 0;
  color: var(--tx2);
  font-size: 18px;
}

.cr-sent__tick {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ok) 14%, transparent);
}

.cr-sent__tick::after {
  content: "";
  width: 16px;
  height: 9px;
  border-bottom: 3.5px solid var(--ok);
  border-left: 3.5px solid var(--ok);
  transform: rotate(-45deg) translate(1px, -2px);
}

.cr-sent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cr-sent__actions .btn {
  flex: 1 1 auto;
}

.cr-sent__actions .btn:first-child {
  flex-basis: 100%;
}

.cr-sent .cr-sent__note {
  margin-top: 16px;
  font-size: 15px;
}

/* планшет и телефон */
@media (max-width: 1080px) and (min-width: 961px) {
  .cr-stair__big {
    font-size: 24px;
  }
}

@media (max-width: 960px) {
  .cr-formwrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cr-stairs {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .cr-stair:nth-child(n) {
    min-height: 0;
  }

  .cr-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .cr-sec {
    padding-top: 56px;
  }

  .cr-earn {
    grid-template-columns: 1fr;
  }

  .cr-earn__col {
    padding: 22px 20px;
  }

  .cr-earn__col + .cr-earn__col {
    border-top: 1.5px solid var(--line);
    border-left: 0;
  }

  .cr-steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .cr-step {
    padding: 0 0 0 62px;
  }

  .cr-step__num {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .cr-step:not(:last-child)::before {
    top: 48px;
    right: auto;
    bottom: -26px;
    left: 21px;
    width: 2px;
    height: auto;
  }

  .cr-step p {
    max-width: none;
  }

  .cr-prices {
    padding: 4px 20px;
  }

  .cr-prices li {
    flex-wrap: wrap;
    gap: 6px 14px;
  }

  .cr-prices__val {
    font-size: 26px;
  }

  .cr-form {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .cr-cta .btn {
    width: 100%;
  }

  .cr-faq summary {
    font-size: 18px;
  }

  .cr-faq details p {
    padding-right: 0;
  }

  .cr-h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-faq summary::after {
    transition: none;
  }
}
