﻿/* ==========================================================================
   ПАРТНЁРЫ — карточка партнёра и приглашение к сотрудничеству
   На токенах сайта: работает в тёмной и светлой теме.
   ========================================================================== */

.pt-hero {
    padding: 92px 0 46px;
    background: var(--bg-primary);
}

.pt-label {
    display: inline-block;
    margin-bottom: 22px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.pt-label::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 10px;
}

.pt-title {
    margin: 0 0 18px;
    max-width: 20ch;
    color: var(--text-primary);
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.pt-lead {
    margin: 0;
    max-width: 52ch;
    color: var(--text-secondary);
    font-size: 16.5px;
    line-height: 1.6;
}

/* ---------- Сетка партнёров: все карточки равные ---------- */

.pt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.pt-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 26px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pt-card:hover {
    border-color: var(--accent-40);
    transform: translateY(-2px);
}

/* Одинаковая площадка под логотип у всех — без визуальной иерархии */
.pt-card__top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 112px;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    overflow: hidden;
}

.pt-card__top img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Монохромный тёмный логотип на тёмной теме выворотом в белый */
.pt-card__top img.is-invert {
    filter: invert(1);
}

.pt-card__name {
    margin: 0 0 10px;
    min-height: 2.5em;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.pt-card__line {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.pt-card__line a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-30);
    text-underline-offset: 3px;
}

.pt-card__line a:hover {
    color: var(--accent-light);
}



.pt-plate--itmo {
    font-family: 'nasalization', sans-serif;
    letter-spacing: 0.14em;
}

@media (max-width: 1199px) {
    .pt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .pt-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Приглашение ---------- */

.pt-cta-section {
    padding: 44px 0 96px;
    background: var(--bg-primary);
}

.pt-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 38px 42px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.pt-cta h2 {
    margin: 0 0 8px;
    color: var(--text-primary);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pt-cta p {
    margin: 0;
    max-width: 46ch;
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.5;
}

.pt-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
    padding: 16px 26px;
    background: var(--accent);
    color: #141414;
    border: 1px solid var(--accent);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, gap 0.2s ease;
}

.pt-cta__btn:hover,
.pt-cta__btn:focus {
    background: transparent;
    color: var(--accent);
    gap: 20px;
    text-decoration: none;
}

@media (max-width: 991px) {
    .pt-hero {
        padding: 64px 0 36px;
    }

    .pt-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }

    .pt-cta__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575px) {
}

/* Партнёры без логотипа: типографическая плашка вместо пустой рамки */
.pt-card__media--plate {
    min-height: 220px;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 8px),
        var(--bg-secondary);
}

.pt-plate {
    font-family: 'Mokoto', 'Mokoto Glitch', sans-serif;
    font-weight: 200;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
    color: var(--accent);
}

.pt-plate--itmo {
    font-family: 'nasalization', sans-serif;
    letter-spacing: 0.14em;
}

.pt-card + 

@media (max-width: 991px) {
    .pt-card + 
}

/* В светлой теме тёмный логотип остаётся тёмным */
html[data-theme="light"] .pt-card__top img.is-invert {
    filter: none;
}
