/* Партнёрские лендинги (osnovaedu.uz/payme, /novvot …): бренд OSNOVA из tokens.css + base.css.
   Партнёрское — только картинка в первом экране и акцент --partner (задаётся на body). Разметку собирает tools/partners-build.mjs. */
body.pt { background: var(--mist); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); }

/* кнопки: как .btn на главной (home.css), здесь своя копия — главную страницу этот файл не трогает */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: background-color var(--t-hover) var(--ease), transform var(--t-hover) var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.pt-btn { background: var(--lime); color: var(--ink); }
.pt-btn:hover { background: #C4EF00; }
.pt-btn--dark { background: var(--ink); color: #fff; }
.pt-btn--dark:hover { background: #262833; }
.pt :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 12px; }

/* ---------- шапка ---------- */
.pt-hdr { padding-top: 16px; }
.pt-hdr__in { display: flex; align-items: center; gap: 14px; height: 64px; }
.pt-hdr__brand img { width: 112px; height: auto; }
.pt-hdr__x { color: var(--ink-55); font-size: 20px; line-height: 1; }
.pt-hdr__partner { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.pt-langs { margin-left: auto; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); }
.pt-langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-55); transition: background-color var(--t-hover) var(--ease), color var(--t-hover) var(--ease); }
.pt-langs a:hover { color: var(--ink); }
.pt-langs a[aria-current="true"] { background: var(--ink); color: #fff; }

/* ---------- первый экран ---------- */
.pt-hero { padding-top: 12px; }
.pt-hero__panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: 40px; min-height: 560px; padding: 56px; border-radius: 32px; background: var(--white);
}
.pt-hero__text { position: relative; z-index: 1; min-width: 0; }
.pt-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.pt-hl { color: var(--blue); white-space: nowrap; }
.pt-sub { margin-top: 20px; max-width: 560px; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-70); }
.pt-steps { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; max-width: 560px; counter-reset: s; }
.pt-steps li { display: flex; align-items: flex-start; gap: 14px; font-size: 17px; line-height: 1.45; }
.pt-steps__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mist); font-size: 14px; font-weight: 700; margin-top: -2px; }
.pt-btn { margin-top: 32px; }

.pt-hero__media { position: relative; align-self: stretch; min-height: 320px; }
/* Payme: персонаж на прозрачном фоне — на мягком пятне фирменного цвета партнёра */
.pt-hero__panel--figure .pt-hero__media::before {
  content: ""; position: absolute; right: -6%; bottom: -14%; width: 104%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--partner) 34%, #fff) 0%, color-mix(in srgb, var(--partner) 14%, #fff) 58%, rgba(255,255,255,0) 100%);
}
.pt-hero__panel--figure .pt-hero__media img { position: absolute; right: -8%; bottom: -56px; width: 118%; max-width: none; height: auto; }
/* Novvot: баннер партнёра целиком, в своих пропорциях. Широкий — колонки поровну, чтобы не мельчил;
   на 1024–1199 заголовок чуть меньше, иначе в половине панели он уходит в четыре строки */
@media (min-width: 1024px) { .pt-hero__panel--banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) and (max-width: 1199px) {
  .pt-hero__panel--banner { gap: 32px; padding: 48px; }
  .pt-hero__panel--banner .pt-h1 { font-size: 56px; line-height: 60px; }
}
.pt-hero__panel--banner .pt-hero__media { align-self: center; min-height: 0; }
.pt-hero__panel--banner .pt-hero__media img { width: 100%; height: auto; border-radius: 24px; }

/* ---------- секции ---------- */
.pt-sec { padding-top: 96px; }
.pt-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pt-about__p { margin-top: 20px; max-width: 560px; color: var(--ink-70); }
.pt-facts { list-style: none; padding: 0; display: grid; gap: 12px; }
.pt-fact { display: flex; align-items: baseline; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--white); }
.pt-fact b { flex: none; min-width: 7.2em; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--blue); }
.pt-fact span { color: var(--ink-70); font-size: 17px; line-height: 1.4; }

/* ---------- курсы: карточки в стиле каталога my.osnovaedu.uz ---------- */
.pt-courses__h { margin-bottom: 32px; }
.pt-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.pt-course {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto;
  column-gap: 16px; row-gap: 10px; min-height: 220px; padding: 24px; border-radius: 24px; background: var(--white);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.pt-course:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(17,18,24,.28); }
.pt-course__lang { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #EEF0F4; font-size: 14px; font-weight: 500; }
.pt-course__lang svg { width: 18px; height: 12px; flex: none; }
.pt-course__title { grid-column: 1; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
.pt-course__meta { grid-column: 1; color: var(--ink-55); font-size: 15px; }
.pt-course__badge { grid-column: 1 / -1; justify-self: start; align-self: end; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--lime); font-size: 14px; font-weight: 600; }
.pt-course__icon { grid-column: 2; grid-row: 1 / 4; align-self: start; width: 104px; height: 104px; border-radius: 22px; object-fit: cover; }
.pt-all { margin-top: 32px; display: flex; justify-content: center; }
.pt-all .pt-btn { margin-top: 0; }

/* ---------- подвал ---------- */
.pt-ftr { margin-top: 120px; padding: 40px 0 48px; border-top: 1px solid var(--ink-08); }
.pt-ftr__in { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: start; }
.pt-ftr__logo img { width: 112px; height: auto; }
.pt-ftr__contacts { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; font-size: 15px; color: var(--ink-70); }
.pt-ftr__contacts a:hover { color: var(--ink); }
.pt-ftr__bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--ink-08); font-size: 13px; color: var(--ink-55); }
.pt-ftr__bottom a:hover { color: var(--ink); }

/* ---------- адаптив ---------- */
/* до 1200: в три колонки длинные названия курсов («AI videogeneratsiya») залезают под иконку,
   а факт в строку сжимает подпись в столбик */
@media (max-width: 1199px) {
  .pt-fact { flex-direction: column; gap: 4px; }
  .pt-fact b { min-width: 0; }
  .pt-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .pt-hero__panel { grid-template-columns: minmax(0, 1fr); padding: 40px; gap: 24px; min-height: 0; }
  .pt-hero__panel--figure .pt-hero__media { min-height: 340px; }
  .pt-hero__panel--figure .pt-hero__media img { right: 0; bottom: -40px; width: min(440px, 90%); }
  .pt-about__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pt-course__title { font-size: 20px; }
  .pt-course__icon { width: 84px; height: 84px; border-radius: 18px; }
}
@media (max-width: 767px) {
  .pt-hdr { padding-top: 8px; }
  .pt-hdr__in { gap: 10px; height: 56px; }
  .pt-hdr__brand img { width: 96px; }
  .pt-hdr__partner { font-size: 17px; }
  .pt-hero__panel { padding: 28px 20px 0; border-radius: 26px; }
  .pt-sub { margin-top: 14px; }
  .pt-steps { margin-top: 22px; }
  .pt-steps li { font-size: 16px; }
  .pt-btn { width: 100%; margin-top: 24px; }
  .pt-hero__panel--figure .pt-hero__media { min-height: 280px; margin: 0 -20px; }
  .pt-hero__panel--figure .pt-hero__media img { right: 0; bottom: -28px; width: 300px; }
  .pt-hero__panel--banner .pt-hero__media { margin: 0 -20px; }
  .pt-hero__panel--banner .pt-hero__media img { border-radius: 0 0 26px 26px; }
  .pt-sec { padding-top: 72px; }
  .pt-fact { padding: 18px 20px; }
  .pt-fact b { font-size: 26px; }
  .pt-courses { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pt-course { min-height: 0; padding: 20px; }
  .pt-all .pt-btn { width: 100%; }
  .pt-ftr { margin-top: 88px; }
  .pt-ftr__in { grid-template-columns: minmax(0, 1fr); }
  .pt-ftr__contacts { justify-content: flex-start; flex-direction: column; }
}
@media (max-width: 399px) {
  .pt-course { column-gap: 12px; }
  .pt-course__title { font-size: 18px; }
  .pt-course__icon { width: 64px; height: 64px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pt-course, .btn { transition: none; } }
