:root {
  --orange: #F7943C;
  --orange-hover: #e07e28;
  --graphite: #2b2b2b;
}

.partners-page {
  color: var(--graphite);
  background: var(--bg);
}
.partners-page [id] { scroll-margin-top: 88px; }

.partners-page .header {
  background: rgba(246, 241, 232, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(180px, 58vw);
  object-fit: contain;
}
@media (min-width: 901px) {
  .partners-page .header__cta { display: inline-flex; }
}

.p-hero {
  padding: 36px 0 20px;
}
.p-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.8fr);
  gap: 32px;
  align-items: center;
}
.p-hero h1 {
  max-width: 16ch;
}
.p-hero__lead {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42ch;
}
.p-hero__card {
  background: var(--paper);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.p-hero__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.p-hero__price {
  margin: 8px 0 6px;
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--orange);
  line-height: 1;
}
.p-hero__split {
  color: var(--muted);
  margin-bottom: 20px;
}
.p-hero__split strong { color: var(--graphite); }
.p-hero__card ul {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.p-hero__card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}
.p-hero__card li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: #fff1ea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23F7943C' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M7 12.5l3.2 3.2L17 8.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.p-value,
.p-get,
.p-revenue,
.p-apply {
  padding: 64px 0 24px;
  text-align: center;
}
.p-apply { padding-bottom: 56px; }
.p-value h2,
.p-get h2,
.p-revenue h2,
.p-apply h2,
.p-not h2 {
  letter-spacing: -0.03em;
}

.p-value__grid,
.p-get__grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}
.p-value__grid article,
.p-get__grid article {
  background: var(--paper);
  border-radius: 22px;
  padding: 26px 24px 24px;
  box-shadow: 0 8px 24px rgba(40, 28, 18, 0.04);
}
.p-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fff1ea;
  color: var(--orange);
  display: grid;
  place-items: center;
}
.p-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-value__grid h3,
.p-get__grid h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.p-value__grid p,
.p-get__grid p {
  color: var(--muted);
  font-size: 0.98rem;
}

.p-not { padding: 48px 0 12px; }
.p-not__banner {
  background: var(--paper);
  color: var(--graphite);
  border-radius: 28px;
  padding: 42px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.p-not__banner .eyebrow,
.p-not__banner .eyebrow--light {
  color: var(--muted);
}
.p-not__banner h2 {
  margin: 8px 0 12px;
  max-width: 16ch;
  color: var(--graphite);
}
.p-not__banner p {
  color: var(--muted);
  max-width: 42ch;
}
.p-not__banner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.p-not__banner li {
  background: #f3f1ec;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: var(--graphite);
}
.p-not__banner strong {
  display: block;
  color: var(--orange);
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.p-get__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p-time {
  padding: 48px 0 12px;
  text-align: center;
}
.p-time__stat {
  margin: 18px auto 0;
  max-width: 720px;
  background: var(--paper);
  border-radius: 28px;
  padding: 42px 28px;
  box-shadow: var(--shadow);
}
.p-time__number {
  font-size: clamp(4.2rem, 10vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--orange);
}
.p-time__text {
  margin: 16px auto 0;
  max-width: 22ch;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
}

.p-revenue__box {
  margin: 32px auto 0;
  max-width: 760px;
  text-align: left;
}
.p-revenue__bar {
  display: grid;
  grid-template-columns: 7fr 3fr;
  border-radius: 18px;
  overflow: hidden;
  font-weight: 800;
  font-size: 1.15rem;
  min-height: 64px;
  background: #d9d6d0;
}
.p-revenue__partner,
.p-revenue__school {
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-revenue__partner {
  background: var(--orange);
  color: #fff;
}
.p-revenue__school {
  background: #c8c5be;
  color: var(--graphite);
}
.p-revenue__legend {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.p-revenue__legend p { color: var(--muted); }
.p-revenue__legend strong { color: var(--graphite); }

.p-apply__box {
  background: #f8e6d6;
  border-radius: 32px;
  padding: 48px 40px 40px;
  text-align: center;
}
.p-apply .section-sub { margin-left: auto; margin-right: auto; }
.p-apply__ok {
  margin: 28px auto 0;
  max-width: 42ch;
  font-weight: 700;
  color: var(--sage);
}

.p-form {
  position: relative;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  text-align: left;
  max-width: 820px;
}
.p-form__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.p-form__trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.p-field {
  display: grid;
  grid-template-rows: auto auto minmax(1.35em, auto);
  gap: 8px;
  min-width: 0;
  align-content: start;
}
.p-field--wide { grid-column: 1 / -1; }
.p-form label {
  font-weight: 700;
  font-size: 0.92rem;
}
.p-form label span {
  font-weight: 500;
  color: var(--muted);
}
.p-form input[type="text"],
.p-form input[type="tel"],
.p-form input[type="email"],
.p-form textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  background: #fff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  resize: vertical;
}
.p-form input:focus,
.p-form textarea:focus {
  box-shadow: inset 0 0 0 2px var(--orange);
}
.p-form .btn {
  margin-top: 4px;
  border: 0;
  justify-self: start;
  min-width: 220px;
}
.p-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.86rem;
}
.p-check input {
  margin-top: 3px;
  accent-color: var(--orange);
  flex: 0 0 auto;
}
.p-check a { color: var(--graphite); font-weight: 700; }
.p-form__error {
  margin: 0;
  min-height: 1.35em;
  color: #b42318;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.35;
}
.p-form__error:empty {
  visibility: hidden;
}
.p-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.p-footer {
  padding: 28px 0 40px;
}
.p-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.p-footer__contacts {
  text-align: right;
  color: var(--muted);
  font-size: 0.95rem;
}
.p-footer__contacts a {
  color: var(--graphite);
  font-weight: 700;
  text-decoration: none;
}
.p-footer__contacts a:hover { color: var(--orange); }

.p-legal {
  padding: 36px 0 64px;
}
.p-legal__inner {
  max-width: 720px;
}
.p-legal h1 { margin-bottom: 18px; }
.p-legal h2 {
  font-size: 1.2rem;
  margin: 28px 0 8px;
}
.p-legal p {
  color: var(--muted);
  margin: 0 0 12px;
}
.p-legal a { color: var(--orange); font-weight: 700; }
.p-legal__back { margin-top: 32px; }

@media (max-width: 900px) {
  .p-hero__grid,
  .p-not__banner,
  .p-get__grid,
  .p-form__pair,
  .p-form__trio {
    grid-template-columns: 1fr;
  }
  .p-hero h1 { max-width: none; }
  .p-form .btn { width: 100%; justify-self: stretch; }
  .p-not__banner { padding: 32px 24px; }
  .p-apply__box { padding: 32px 20px; }
  .p-footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .p-footer__contacts { text-align: center; }
}

@media (max-width: 640px) {
  .p-value__grid { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
}
