/* Блоки страниц для агентов: /subscription и /pnr-api (pages/subscription.ejs, pages/pnrApi.ejs).
   Рукописный CSS, исходника в src/styles нет. Переключатели — public/js/agentBlocks.js.
   .roles  — вкладки «для кого» над крупной фразой
   .agenda — список строк с колонкой значения и меткой (фильтр-чипы — где строк много, /pnr-api Errors)
   .spot   — две колонки: текст со списком и кнопками слева, карточка справа
   Заголовки секций — классы страницы (.title_h2, .pnr-section-title), здесь только остальное.
   Отступ между такими блоками — --agent-gap, как у секций шаблона-образца (onward-summit): 72–120px. */
:root { --agent-gap: clamp(72px, 10vw, 120px); }

.roles,
.agenda,
.spot {
    font-family: "Inter", Roboto, sans-serif;
    color: #141414;
}

/* чипы и строки прячет agentBlocks.js атрибутом hidden: display у .chips его бы перебил */
.chips[hidden],
[data-group][hidden] { display: none !important; }

/* ── вкладки и чипы: одна форма кнопки ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #D4D4D4;
    border-radius: 999px;
    background: #FFFFFF;
    font-family: "Inter", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1;
    color: #141414;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: #141414; }
.chip:focus-visible { outline: 2px solid #4450F2; outline-offset: 2px; }
.chip[aria-selected="true"],
.chip[aria-pressed="true"] { border-color: #141414; background: #141414; color: #FFFFFF; }
.chip__count { font-size: 13px; color: #9299A2; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__count { color: rgba(255, 255, 255, .6); }

/* ── .roles ── */
.roles__tabs { margin: 20px 0 28px; }
.roles__statement {
    max-width: 900px;
    margin: 0;
    font-family: "Poppins", Roboto, sans-serif;
    font-size: 34px;
    line-height: 46px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: #B4B8BE;
    text-wrap: pretty;
}
.roles__statement b { font-weight: 500; color: #141414; }
@media (max-width: 767px) { .roles__statement { font-size: 24px; line-height: 34px; } }

/* ── .agenda ── */
.agenda__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.agenda__intro { max-width: 560px; }
.agenda__intro p { margin: 12px 0 0; font-size: 16px; line-height: 26px; color: #4B5059; }
/* «$5.90 за документ | Subscribe»: справка и кнопка в одной капсуле */
.agenda__pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 6px 6px 18px;
    border: 1px solid #D4D4D4;
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
    color: #4B5059;
}
.agenda__pill b { font-weight: 600; color: #141414; }
.agenda__pill-btn {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: #4450F2;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s;
}
.agenda__pill-btn:hover { background: #1D29C7; color: #FFFFFF; text-decoration: none; }
.agenda__filter { margin-bottom: 16px; }

.agenda__list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #E6E6E6; }
.agenda__row {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 24px;
    padding: 20px 12px;
    border-top: 1px solid #E6E6E6;
    color: #141414;
    text-decoration: none;
    transition: background .2s;
}
a.agenda__row:hover { background: #F8F8F8; color: #141414; text-decoration: none; }
a.agenda__row:focus-visible { outline: 2px solid #4450F2; outline-offset: -2px; }
.agenda__value { font-family: "Poppins", Roboto, sans-serif; font-size: 20px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda__value small { display: block; font-family: "Inter", Roboto, sans-serif; font-size: 13px; line-height: 18px; font-weight: 400; color: #9299A2; }
.agenda__title { font-size: 17px; line-height: 24px; font-weight: 600; }
.agenda__text { margin-top: 4px; font-size: 15px; line-height: 22px; color: #4B5059; }
.agenda__tag {
    padding: 4px 12px;
    border-radius: 999px;
    background: #F1F1F1;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: #4B5059;
    white-space: nowrap;
}
.agenda__tag--tickets { background: #DAD9FB; color: #4450F2; }
.agenda__tag--hotels { background: #FEF0C7; color: #7A5A00; }
.agenda__tag--api { background: #141414; color: #FFFFFF; }
.agenda__go {
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
    opacity: .35;
    transition: opacity .2s, transform .2s;
}
a.agenda__row:hover .agenda__go { opacity: 1; transform: translateX(3px); }
@media (max-width: 767px) {
    .agenda__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 4px; }
    .agenda__value { grid-column: 1; font-size: 17px; }
    .agenda__value small { display: inline; margin-left: 6px; }
    .agenda__tag { grid-column: 2; grid-row: 1; justify-self: end; }
    .agenda__main { grid-column: 1 / -1; }
    .agenda__go { display: none; }
}

/* ── .spot ── */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: stretch; }
.spot__lead { margin: 12px 0 0; font-size: 16px; line-height: 26px; color: #4B5059; }
.spot__rule { height: 1px; margin: 24px 0 8px; border: 0; background: #E6E6E6; }
.spot__list { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: spot; }
.spot__list li {
    position: relative;
    padding: 10px 0 10px 32px;
    border-bottom: 1px solid #F1F1F1;
    font-size: 16px;
    line-height: 24px;
}
.spot__list li:last-child { border-bottom: 0; }
.spot__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 5.5l4.5 4.5-4.5 4.5' fill='none' stroke='%234450F2' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.spot__list li b { font-weight: 600; }
.spot__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.spot__link { font-size: 16px; font-weight: 500; color: #4450F2; }
.spot__link:hover { color: #1D29C7; }

/* карточка справа: светлая или тёмная (код) и метка-«булавка» */
.spot__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 320px;
    padding: 56px 32px 32px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 1px 1px, rgba(20, 20, 20, .09) 1px, transparent 1.5px) 0 0 / 18px 18px,
        #F8F8F8;
}
.spot__card--dark { background: #141414; color: #FFFFFF; }
.spot__pin {
    position: absolute;
    top: 20px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 48px);
    padding: 6px 12px;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(20, 20, 20, .10);
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: #141414;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.spot__pin::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4450F2; box-shadow: 0 0 0 3px #DAD9FB; }
.spot__card--dark .spot__pin { background: #2A2A2A; color: #FFFFFF; box-shadow: none; }
.spot__card--dark .spot__pin::before { background: #7BF78F; box-shadow: 0 0 0 3px rgba(123, 247, 143, .2); }
@media (max-width: 767px) {
    .spot { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .spot__card { min-height: 0; padding: 68px 16px 20px; }
}
