/* Страница /partners — предложения сервисов-партнёров. Поверх konstruktor.css
   (шапка, подвал, кнопки k-btn, токены цвета). Все классы с префиксом pt-. */
.pt {
    --pt-pink: #f0c1fb;
    --pt-gap: 64px;
}
@media (max-width: 700px) { .pt { --pt-gap: 40px; } }
.pt h1, .pt h2, .pt h3 { margin: 0; }
.pt { padding-bottom: var(--pt-gap); }
.pt-section { margin-top: var(--pt-gap); }

/* верх страницы */
.pt-hero { padding-top: 36px; }
.pt-badge { display: inline-flex; align-items: center; background: var(--k-lime); border-radius: 3000px; padding: 6px 14px;
    font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.pt-hero h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -.035em; }
.pt-hero h1 em { font-style: normal; background: linear-gradient(transparent 58%, var(--k-lime) 58% 92%, transparent 92%); }
.pt-hero p { color: var(--k-ink-2); font-size: 20px; max-width: 640px; margin: 16px 0 0; }

/* сетка карточек */
.pt-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pt-grid { grid-template-columns: minmax(0, 1fr); } }

.pt-logo { display: block; height: 42px; width: auto; max-width: 200px; object-fit: contain; }
.pt-wordmark { display: inline-flex; align-items: center; height: 42px; font-weight: 800; font-size: 30px; letter-spacing: -.04em;
    line-height: 1; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.pt-card { border: 1.5px solid var(--k-line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
    background: #fff; transition: border-color .15s, transform .2s; }
.pt-card:hover { border-color: #000; transform: translateY(-3px); }
.pt-card__stage { position: relative; background: var(--k-card); height: 136px; display: grid; place-items: center; padding: 0 20px;
    transition: background .2s; }
.pt-card:hover .pt-card__stage { background: #efefef; }
.pt-card__badge { position: absolute; left: 14px; top: 14px; background: var(--k-lime); border-radius: 3000px; padding: 4px 12px;
    font-weight: 700; font-size: 15px; }
.pt-card__cat { position: absolute; right: 16px; top: 17px; font-size: 12px; font-weight: 600; color: var(--k-muted);
    text-transform: uppercase; letter-spacing: .06em; }
.pt-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pt-card__body h3 { font-size: 20px; line-height: 1.25; }
.pt-card__body p { margin: 0; color: var(--k-muted); font-size: 15px; }
.pt-card__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 12px; }

/* логотипы в сетке — ч/б, цветные при наведении (только где есть мышь) */
@media (hover: hover) {
    .pt-card__stage .pt-logo, .pt-card__stage .pt-wordmark { filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s; }
    .pt-card:hover .pt-card__stage .pt-logo, .pt-card:hover .pt-card__stage .pt-wordmark,
    .pt-card:focus-within .pt-card__stage .pt-logo, .pt-card:focus-within .pt-card__stage .pt-wordmark { filter: none; opacity: 1; transform: scale(1.04); }
}

/* промокод */
.pt-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1.5px dashed #000; border-radius: 12px;
    padding: 6px 6px 6px 14px; font: 600 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; background: #fff; }
.pt-code span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pt-code button { border: 0; border-radius: 8px; background: #000; color: #fff; font: 600 13px var(--k-font); padding: 8px 12px;
    cursor: pointer; white-space: nowrap; }
.pt-code button.is-done { background: #2e7d32; }

.pt-go { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; align-self: flex-start; }
.pt-go i { font-style: normal; transition: transform .2s; }
.pt-go:hover i { transform: translateX(4px); }

/* партнёр месяца — серый купон с корешком */
.pt-feat { display: grid; grid-template-columns: minmax(0, 1fr) 340px; background: var(--k-card); border-radius: 28px; position: relative; }
.pt-feat__main { padding: 40px 44px; display: flex; flex-direction: column; gap: 16px; }
.pt-feat__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-feat__plate { background: #fff; border-radius: 14px; padding: 12px 18px; display: inline-flex; }
.pt-feat__plate .pt-logo, .pt-feat__plate .pt-wordmark { height: 34px; max-width: 170px; }
.pt-feat__plate .pt-wordmark { font-size: 26px; }
.pt-feat__label { background: var(--k-lime); border-radius: 3000px; padding: 5px 12px; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; }
.pt-feat h3 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.06; letter-spacing: -.02em; }
.pt-feat p { margin: 0; color: var(--k-ink-2); max-width: 560px; }
.pt-feat__stub { border-left: 2px dashed #cfcfcf; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center;
    gap: 14px; position: relative; }
.pt-feat__stub::before, .pt-feat__stub::after { content: ""; position: absolute; left: -17px; width: 32px; height: 32px; border-radius: 50%; background: var(--k-bg); }
.pt-feat__stub::before { top: -16px; }
.pt-feat__stub::after { bottom: -16px; }
.pt-feat__value { font-size: clamp(56px, 6vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: .9; align-self: flex-start;
    background: linear-gradient(transparent 60%, var(--k-lime) 60% 90%, transparent 90%); overflow-wrap: anywhere; }
.pt-feat__stub small { font-weight: 600; font-size: 15px; }
@media (max-width: 800px) {
    .pt-feat { grid-template-columns: minmax(0, 1fr); }
    .pt-feat__main { padding: 26px; }
    .pt-feat__stub { border-left: 0; border-top: 2px dashed #cfcfcf; padding: 26px; }
    .pt-feat__stub::before, .pt-feat__stub::after { top: -17px; bottom: auto; }
    .pt-feat__stub::before { left: -16px; }
    .pt-feat__stub::after { left: auto; right: -16px; }
}

/* «Ваш сервис — следующий» */
.pt-join { background: #000; color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px; align-items: center; overflow: hidden; }
.pt-join h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.04; letter-spacing: -.025em; }
.pt-join h2 em { font-style: normal; color: var(--k-lime); }
.pt-join p { color: #bdbdbd; margin: 16px 0 26px; max-width: 520px; }
.pt-join__list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pt-join__list li { display: flex; gap: 10px; align-items: center; }
.pt-join__list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--k-lime); color: #000; display: grid;
    place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.pt-stack { position: relative; height: 380px; }
.pt-mini { position: absolute; width: 270px; background: #fff; color: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .4); }
.pt-mini__st { height: 100px; background: var(--k-card); display: grid; place-items: center; position: relative; padding: 0 16px; }
.pt-mini__st img { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.pt-mini__st b { position: absolute; left: 10px; top: 10px; background: var(--k-lime); border-radius: 3000px; padding: 1px 9px; font-size: 12px; }
.pt-mini__tx { padding: 12px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-mini:nth-child(1) { left: 0; top: 40px; transform: rotate(-7deg); }
.pt-mini:nth-child(2) { right: 0; top: 0; transform: rotate(6deg); }
.pt-mini--ghost { left: 50%; margin-left: -135px; top: 190px; transform: rotate(-2deg) !important; right: auto !important; background: #111; color: #fff;
    border: 2px dashed var(--k-lime); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); }
.pt-mini--ghost .pt-mini__st { background: #1b1b1b; color: var(--k-lime); font-weight: 700; font-size: 18px; }
/* Партнёров с логотипами ещё нет — пустая карточка одна, по центру колонки
   (правило :nth-child(1) выше иначе прижимает её влево, на текст). */
.pt-mini--ghost:only-child { left: 50%; top: 120px; }
/* Один партнёр: его карточка слева, пустая — справа и ниже, не закрывая её. */
.pt-mini:first-child:nth-last-child(2) { left: 0; top: 30px; }
.pt-mini--ghost:nth-child(2):last-child { left: auto; right: 0 !important; margin-left: 0; top: 170px; transform: rotate(4deg) !important; }
@media (max-width: 900px) {
    .pt-join { grid-template-columns: minmax(0, 1fr); padding: 28px; }
    .pt-stack { height: 320px; }
    .pt-mini { width: 220px; }
    .pt-mini--ghost { margin-left: -110px; top: 160px; }
}

/* окно «Предложить свой сервис» */
.pt-modal { border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); background: #fff;
    color: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .25); overflow: auto; }
.pt-modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); }
.pt-modal[open] { animation: ptIn .22s ease-out; }
@keyframes ptIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.pt-modal__in { padding: 36px 36px 30px; position: relative; }
.pt-modal__in:focus { outline: none; }
.pt-modal__x { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--k-card);
    cursor: pointer; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: background .15s; }
.pt-modal__x:hover { background: #e9e9e9; }
.pt-modal__x:focus { outline: none; }
.pt-modal__x:focus-visible { outline: 3px solid var(--k-lime-2); outline-offset: 2px; }
.pt-modal__tag { display: inline-flex; background: var(--k-lime); border-radius: 3000px; padding: 5px 12px; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; }
.pt-modal h2 { font-size: 30px; line-height: 1.08; letter-spacing: -.02em; margin: 14px 0 8px; padding-right: 40px; }
.pt-modal__lead { margin: 0 0 22px; color: var(--k-ink-2); font-size: 16px; }
.pt-form { display: flex; flex-direction: column; gap: 14px; }
.pt-form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pt-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.pt-form label i { font-style: normal; color: #c62828; }
.pt-form input, .pt-form textarea { width: 100%; border: 1.5px solid var(--k-line); border-radius: 12px; padding: 13px 14px; font: 16px var(--k-font);
    background: #fafafa; outline: none; transition: border-color .15s, background .15s; }
.pt-form input:focus, .pt-form textarea:focus { border-color: #000; background: #fff; }
.pt-form textarea { resize: vertical; min-height: 92px; }
.pt-form .is-invalid { border-color: #c62828; }
/* поле логотипа в заявке */
.pt-file { position: relative; }
.pt-file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pt-file__box { flex-direction: row !important; align-items: center; gap: 12px !important; border: 1.5px dashed #cfcfcf; border-radius: 12px;
    padding: 10px 44px 10px 12px; cursor: pointer; background: #fafafa; transition: border-color .15s, background .15s; font-weight: 400 !important; }
.pt-file__box:hover, .pt-file input:focus-visible + .pt-file__box { border-color: #000; background: #fff; }
.pt-file__ic { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid var(--k-line); display: grid; place-items: center;
    font-size: 18px; flex: none; }
.pt-file__ic::before { content: "+"; font-weight: 600; }
.pt-file.is-set .pt-file__ic::before { content: "✓"; }
.pt-file__t { min-width: 0; }
.pt-file__t b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-file__t small { display: block; font-size: 13px; color: var(--k-muted); }
.pt-file.is-set .pt-file__box { border-style: solid; border-color: #000; background: #fff; }
.pt-file.is-set .pt-file__ic { background: var(--k-lime); border-color: var(--k-lime); }
.pt-file.is-invalid .pt-file__box { border-color: #c62828; }
.pt-file.is-invalid .pt-file__t small { color: #c62828; }
.pt-file__x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0;
    background: var(--k-card); cursor: pointer; font-size: 16px; line-height: 1; }
.pt-file__x:hover { background: #e9e9e9; }
.pt-form__agree { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 13px !important;
    color: var(--k-muted); }
.pt-form__agree input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #000; flex: none; }
.pt-form__agree a { color: var(--k-ink); }
.pt-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pt-form__error { margin: 0; color: #c62828; font-size: 14px; }
.pt-form .k-btn { width: 100%; margin-top: 4px; }
.pt-or { display: flex; align-items: center; gap: 12px; color: var(--k-muted); font-size: 14px; margin: 18px 0; }
.pt-or::before, .pt-or::after { content: ""; flex: 1; height: 1px; background: var(--k-line); }
.pt-tg { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--k-line); border-radius: 14px; padding: 12px 16px; text-decoration: none;
    transition: border-color .15s; }
.pt-tg:hover { border-color: #000; }
.pt-tg__ic { width: 38px; height: 38px; border-radius: 50%; background: #2aabee; display: grid; place-items: center; flex: none; }
.pt-tg__t b { display: block; font-size: 16px; }
.pt-tg__t small { display: block; font-size: 13px; color: var(--k-muted); }
.pt-tg em { margin-left: auto; font-style: normal; font-weight: 600; }
.pt-modal__aff { margin: 16px 0 0; font-size: 13px; color: var(--k-muted); }
.pt-modal__aff a { color: var(--k-ink); font-weight: 600; }
.pt-done { text-align: center; padding: 30px 0 10px; }
.pt-done__ic { width: 72px; height: 72px; border-radius: 50%; background: var(--k-lime); display: grid; place-items: center; margin: 0 auto 18px;
    font-size: 34px; font-weight: 800; }
.pt-done h2 { padding: 0; margin: 0 0 8px; }
.pt-done p { color: var(--k-ink-2); margin: 0 0 22px; }
@media (max-width: 600px) {
    .pt-modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; }
    .pt-modal__in { padding: 28px 18px 22px; }
    .pt-modal h2 { font-size: 26px; }
    .pt-form__row { grid-template-columns: minmax(0, 1fr); }
}
