/*
 * Стили лендинга «Партнёры BEAJOY»
 * Свёрстано по макету Figma (frame 1091×4227, node 4376:1079).
 * Все классы scoped через префикс .pt- — не утекают на другие страницы.
 */

.pt-page {
    --pt-ink: #000;
    --pt-paper: #fff;

    --pt-card1-bg: #e5f3ff;
    --pt-card2-bg: #cfe8ff;
    --pt-card3-bg: #ffd8e7;
    --pt-card4-bg: #e7e0ff;

    --pt-band3-bg: #ffeaf3;
    --pt-band4-bg: #f3f0ff;

    --pt-hero1: #40a2ff;
    --pt-hero2: #ff599c;
    --pt-hero3: #9172ff;

    --pt-accent-blue: #369eff;
    --pt-accent-pink: #ff3b8a;
    --pt-accent-purple: #8769f0;

    --pt-chip-blue: #aed8ff;
    --pt-chip-pink: #ffbeda;
    --pt-chip-purple: #d5c9ff;
    --pt-chip-audience: #e2e4ff;

    --pt-cta-secondary: #d0f1ff;
    --pt-cta-primary: #ff0004;

    position: relative;
    max-width: 1091px;
    margin: 0 auto;
    padding: 0 30px;
    background: var(--pt-paper);
    font-family: 'Montserrat', 'Arial', sans-serif;
    color: var(--pt-ink);
    box-sizing: border-box;
}
.pt-page *,
.pt-page *::before,
.pt-page *::after { box-sizing: border-box; }

/* ───────────────── Базовая карточка-секция ───────────────── */
.pt-card {
    position: relative;
    border-radius: 58px;
    padding: 58px 45px 50px;
    overflow: hidden;
    margin-top: 24px;
}
.pt-card:first-of-type { margin-top: 53px; }

.pt-card--hero   { background: var(--pt-card1-bg); padding: 41px 45px 55px; }
.pt-card--blue   { background: var(--pt-card2-bg); }
.pt-card--pink   { background: var(--pt-card3-bg); padding-bottom: 0; }
.pt-card--purple { background: var(--pt-card4-bg); padding-bottom: 0; }

.pt-card__title {
    margin: 0;
    font-weight: 700;
    font-size: 50px;
    line-height: 1.1;
    color: var(--pt-ink);
    letter-spacing: 0;
}
.pt-card__caption {
    margin: 12px 0 0 90px;
    font-weight: 500;
    font-size: 20px;
    line-height: 22px;
    color: var(--pt-ink);
}

/* ───────────────── HERO (секция «Выберите формат…») ───────────────── */
.pt-hero__title {
    margin: 0 0 24px;
    font-weight: 500;
    font-size: 35px;
    line-height: 38px;
    color: var(--pt-ink);
    max-width: 720px;
}
.pt-hero-grid {
    display: flex;
    gap: 11px;
    align-items: stretch;
}
.pt-hero-card {
    position: relative;
    border-radius: 31px;
    padding: 41px 26px;
    color: var(--pt-paper);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 21px;
}
.pt-hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.33), rgba(255,255,255,0) 65%);
    pointer-events: none;
}
.pt-hero-card > * { position: relative; z-index: 1; }
.pt-hero-card--1 { background: var(--pt-hero1); flex: 306 0 0; }
.pt-hero-card--2 { background: var(--pt-hero2); flex: 324 0 0; }
.pt-hero-card--3 { background: var(--pt-hero3); flex: 285 0 0; }
.pt-hero-num  { font-weight: 700; font-size: 50px; line-height: 1; }
.pt-hero-name { font-weight: 700; font-size: 26px; line-height: 1.1; }
.pt-hero-desc { font-weight: 400; font-size: 19px; line-height: 19px; }

/* ───────────────── Заголовок-строка с прайс-пилюлей ───────────────── */
.pt-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
}
.pt-row__text {
    font-weight: 500;
    font-size: 35px;
    line-height: 38px;
    color: var(--pt-ink);
    flex: 0 0 auto;
}
.pt-row__text--mixed b { font-weight: 700; }
.pt-row__connector {
    position: relative;
    flex: 1 1 auto;
    height: 1.5px;
    background: var(--pt-ink);
    max-width: 102px;
}
.pt-row__connector::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--pt-ink);
    border-top: 1.5px solid var(--pt-ink);
    transform: translateY(-50%) rotate(45deg);
}
.pt-row__pill {
    flex: 0 0 322px;
    display: flex;
    justify-content: flex-start;
    margin-left: auto;
}

/* ───────────────── Прайс-пилюли (большие) ───────────────── */
.pt-pill-lg {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    height: 77px;
    padding: 0 36px;
    border-radius: 999px;
    color: var(--pt-paper);
    white-space: nowrap;
}
.pt-pill-lg--blue { background: var(--pt-accent-blue); }
.pt-pill-lg--pink { background: var(--pt-accent-pink); }
.pt-pill-lg .pt-pill__prefix { font-weight: 400; font-size: 22px; line-height: 77px; }
.pt-pill-lg .pt-pill__amount { font-weight: 700; font-size: 30px; line-height: 77px; }
.pt-pill-lg .pt-pill__unit   { font-weight: 400; font-size: 22px; line-height: 77px; }

/* ───────────────── Прайс-пилюли (малые, для строки условий) ───────────────── */
.pt-pill-sm {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    height: 49px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--pt-accent-pink);
    color: var(--pt-paper);
    white-space: nowrap;
}
.pt-pill-sm .pt-pill__prefix { font-weight: 400; font-size: 16px; line-height: 49px; }
.pt-pill-sm .pt-pill__amount { font-weight: 700; font-size: 22px; line-height: 49px; }
.pt-pill-sm .pt-pill__unit   { font-weight: 400; font-size: 16px; line-height: 49px; }

/* ───────────────── «Преимущества:» ───────────────── */
.pt-advtitle {
    margin: 30px 0 18px;
    font-weight: 600;
    font-size: 35px;
    line-height: 34px;
    text-align: left;
}
.pt-advtitle--blue   { color: var(--pt-accent-blue); }
.pt-advtitle--pink   { color: var(--pt-accent-pink); }
.pt-advtitle--purple { color: var(--pt-accent-purple); }

/* ───────────────── Сетка чипов «Преимущества» ───────────────── */
.pt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}
.pt-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 21px;
    padding: 18px 28px;
    min-height: 64px;
    font-weight: 400;
    font-size: 20px;
    line-height: 22px;
    color: var(--pt-ink);
}
.pt-chip--blue     { background: var(--pt-chip-blue);     border-radius: 21px; min-height: 83px; }
.pt-chip--pink     { background: var(--pt-chip-pink);     border-radius: 19px; }
.pt-chip--purple   { background: var(--pt-chip-purple);   border-radius: 21px; }
.pt-chip--audience { background: var(--pt-chip-audience); border-radius: 21px; }

/* ───────────────── Полноширинная полоса внутри карточки ───────────────── */
.pt-band {
    position: relative;
    margin: 32px -45px 0;
    padding: 38px 45px 42px;
}
.pt-band--pink   { background: var(--pt-band3-bg); }
.pt-band--purple { background: var(--pt-band4-bg); }
.pt-band__title {
    margin: 0 0 26px;
    font-weight: 600;
    font-size: 35px;
    line-height: 44px;
    color: var(--pt-ink);
}
.pt-band__title--big { font-size: 38px; }
.pt-band__footer {
    margin: 36px 0 0 !important;
    text-align: left;
    font-weight: 500;
    font-size: 22px;
    line-height: 33px;
    color: var(--pt-ink);
}

/* ───────────────── Строка условий (Воск/РРЦ/Наценка) ───────────────── */
.pt-conditions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pt-condition {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}
.pt-condition__label {
    font-weight: 500;
    font-size: 22px;
    line-height: 22px;
    color: var(--pt-ink);
    white-space: pre-line;
}
.pt-condition__line {
    position: relative;
    flex: 0 0 28px;
    height: 1.3px;
    background: var(--pt-ink);
}
.pt-condition__line::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.3px solid var(--pt-ink);
    border-top: 1.3px solid var(--pt-ink);
    transform: translateY(-50%) rotate(45deg);
}

/* ───────────────── CTA-кнопки ───────────────── */
.pt-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 74px 0 0;
}
.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    padding: 0 55px;
    border: 0;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 500;
    font-size: 23px;
    line-height: 28px;
    letter-spacing: 0;
    cursor: pointer;
    text-decoration: none;
    transition: filter .15s ease, transform .15s ease;
}
.pt-btn:hover  { filter: brightness(0.96); }
.pt-btn:active { transform: translateY(1px); }
.pt-btn--secondary {
    background: var(--pt-cta-secondary);
    color: var(--pt-ink);
    min-width: 335px;
}
.pt-btn--primary {
    background: var(--pt-cta-primary);
    color: var(--pt-paper);
    min-width: 383px;
}

/* ───────────────── Адаптив ───────────────── */
@media (max-width: 900px) {
    .pt-page { padding: 0 16px; }
    .pt-card { padding: 36px 24px; border-radius: 36px; }
    .pt-card__title { font-size: 32px; }
    .pt-hero__title { font-size: 24px; line-height: 1.25; }
    .pt-hero-grid { flex-direction: column; }
    .pt-hero-card { flex: none; }
    .pt-card__caption { margin-left: 0; }
    .pt-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .pt-row__pill { margin-left: 0; }
    .pt-row__connector { display: none; }
    .pt-advtitle { font-size: 26px; }
    .pt-chip { font-size: 16px; padding: 14px 20px; min-height: auto; }
    .pt-band { margin: 24px -24px 0; padding: 28px 24px; }
    .pt-band__title { font-size: 26px; line-height: 32px; }
    .pt-conditions { flex-direction: column; align-items: stretch; gap: 14px; }
    .pt-cta { margin-top: 36px; }
    .pt-btn { min-width: 0; width: 100%; font-size: 18px; height: 60px; padding: 0 24px; }
    .pt-pill-lg { height: 60px; padding: 0 22px; }
    .pt-pill-lg .pt-pill__prefix,
    .pt-pill-lg .pt-pill__unit { font-size: 18px; line-height: 60px; }
    .pt-pill-lg .pt-pill__amount { font-size: 24px; line-height: 60px; }
}
