/* Карточки тарифов (#144, 05.12.2026): /proxy/*, посадочные, /watch/<страна>, блоки
   «перейти на приватные» на бесплатных страницах. Шаблон — templates/{ru,en}/offer-card.tpl.
   Палитра сайта: фон #1E1E24, панели #27272D, текст #ECECF1, приглушённый #949494 / #6F6F81,
   акцент #03FFA4, «не работает в РФ» — #FF5C6C. */

.po-section { margin: 8px 0 40px; }
.po-h2 {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: #ECECF1;
    text-align: left;
}
.po-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.po-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border-radius: 14px;
    background: #27272D;
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.po-card:hover {
    border-color: rgba(3, 255, 164, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.po-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.po-flag {
    flex: 0 0 auto;
    width: 28px;
    height: 20px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.po-title { min-width: 0; }
.po-country {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #ECECF1;
    overflow-wrap: anywhere;
}
.po-kind {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.35;
    color: #949494;
}
.po-foot { margin-top: auto; }
.po-price { font-size: 14px; line-height: 1.3; color: #949494; }
.po-price b { font-size: 24px; font-weight: 700; color: #03FFA4; white-space: nowrap; }
.po-period { white-space: nowrap; }
.po-meta { margin-top: 4px; font-size: 12px; line-height: 1.35; color: #6F6F81; }
.po-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-radius: 10px;
    background: #03FFA4;
    color: #1E1E24;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.po-card:hover .po-btn { box-shadow: 0 8px 22px rgba(3, 255, 164, 0.25); }
.po-btn:focus { outline: none; }
.po-btn:focus-visible { outline: 2px solid #ECECF1; outline-offset: 2px; }

/* «Не работает в РФ»: как в каталоге — красная рамка и метка, карточка в конце списка. */
.po-card.is-ru-dead { border-color: rgba(255, 92, 108, 0.55); background: linear-gradient(rgba(255, 92, 108, 0.05), rgba(255, 92, 108, 0.05)), #27272D; }
.po-card.is-ru-dead:hover { border-color: rgba(255, 92, 108, 0.9); }
.po-ru {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 92, 108, 0.14);
    color: #FF8C97;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.po-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 18px;
}
.po-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1.5px solid rgba(236, 236, 241, 0.2);
    color: #ECECF1;
    font-size: 14px;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.po-cta:hover { color: #ECECF1; text-decoration: none; border-color: rgba(3, 255, 164, 0.6); background: rgba(3, 255, 164, 0.06); }
.po-hint { flex: 1 1 280px; margin: 0; font-size: 13px; line-height: 1.5; color: #6F6F81; }

@media (max-width: 575.98px) {
    .po-h2 { font-size: 22px; margin-bottom: 14px; }
    .po-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .po-card { padding: 14px 12px; gap: 12px; border-radius: 12px; }
    .po-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .po-country { font-size: 15px; }
    .po-kind { font-size: 12px; }
    .po-price b { font-size: 20px; }
    .po-btn { padding: 9px 10px; font-size: 13px; }
    .po-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .po-card, .po-btn { transition: none; }
    .po-card:hover { transform: none; }
}

/* /watch/<страна>: секция тарифов поверх старой разметки proxy-table.tpl. */
.ws-offers { margin-top: 32px; margin-bottom: 40px; }
.ws-offers .pagination-block { margin-top: 20px; }
.ws-offers .po-h2 { text-align: center; }
.ws-block + .ws-offers { margin-top: 8px; }
.ws-block-after { margin-top: 0; }
