/*
 * Страницы движка (правила, привилегии, документы, контакты) в теме UnixMine: те же классы, что в templates/css/site.css,
 * в палитре и формах MineSide (белые карточки, оранжевые акценты, Exo 2).
 */

.nowrap { white-space: nowrap; }
.btn--primary { color: rgba(0, 0, 0, .7); }
.btn--block { display: block; width: 100%; line-height: 32px; }
a.btn { line-height: 32px; }

.page-head { padding: 40px 0 4px; }
.page-head h1 { font-size: 30px; line-height: 1.2; text-transform: uppercase; color: #000; }
.page-head p { margin: 10px 0 0; color: #616161; max-width: 680px; }

/* ---------- Правила ---------- */

.rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; line-height: 1.6; }
.rules__section { padding: 24px; border-radius: 8px; background: #fff; box-shadow: rgba(0, 0, 0, .12) 0 1px 6px, rgba(0, 0, 0, .12) 0 1px 4px; }
.rules__section h2 { display: inline-block; padding-bottom: 8px; border-bottom: 3px solid #ff9800; font-size: 19px; text-transform: uppercase; color: #000; }
.rules__lead { margin: 14px 0 0; color: #e65100; font-weight: 700; }
.rules__list { list-style: none; margin: 8px 0 0; padding: 0; }
.rules__list li {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    overflow-wrap: anywhere;
}
.rules__list li:last-child { border-bottom: 0; }
.rules__num { font-weight: 800; color: #ff9800; }
.rules__penalty {
    display: inline-block;
    margin-left: 4px;
    padding: 0 8px;
    border-radius: 14px;
    background: #f44336;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
}
.rules__note { color: #9e9e9e; font-size: 14px; }

/* ---------- Документы, контакты ---------- */

.doc { max-width: 820px; margin-top: 24px; padding: 24px 28px 8px; border-radius: 8px; background: #fff; line-height: 1.6; box-shadow: rgba(0, 0, 0, .12) 0 1px 6px, rgba(0, 0, 0, .12) 0 1px 4px; }
.doc section { margin-bottom: 22px; }
.doc h2 { margin-bottom: 10px; font-size: 18px; text-transform: uppercase; color: #000; }
.doc p, .doc li { color: #616161; }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 10px; padding-left: 22px; }
.doc li { margin-bottom: 4px; }
.doc a { text-decoration: underline; }
mark.todo { padding: 0 4px; border-radius: 3px; background: #fde7c4; color: #8a5a17; font-weight: 700; }

/* ---------- Привилегии ---------- */

.perks-info { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; color: #616161; font-size: 15px; }
.perks-info li { display: flex; align-items: center; gap: 8px; }
.perks-info li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: #ff9800; box-shadow: inset 0 -2px 0 #e65100; }

.goods { max-width: none; }
.goods h3 { margin: 0 0 10px; font-size: 18px; text-transform: uppercase; color: #000; }
.goods__table { width: 100%; border-collapse: collapse; }
.goods__table th, .goods__table td { padding: 8px 10px 8px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #eee; color: #616161; }
.goods__table th { font-size: 13px; color: #9e9e9e; }
.goods__table tr:last-child td { border-bottom: 0; }
.goods__table td:first-child { color: #212121; font-weight: 700; white-space: nowrap; }
.goods__price { text-align: right !important; white-space: nowrap; }

.ranks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; align-items: start; }
.rank { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: rgba(0, 0, 0, .12) 0 1px 6px, rgba(0, 0, 0, .12) 0 1px 4px; }
.rank__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #212121;
}
.rank__head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rank-a), var(--rank-b));
}
.rank__name { font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.rank__name span { color: #757575; }
.rank__name b {
    background: linear-gradient(90deg, var(--rank-a), var(--rank-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.rank__price { flex: none; padding: 2px 12px; border-radius: 14px; background: #ff9800; box-shadow: inset 0 -3px 0 #e65100; font-weight: 800; color: rgba(0, 0, 0, .7); }
.rank__body { padding: 14px 20px 4px; }
.rank__perks { margin: 0; padding: 0; list-style: none; }
.rank__perks li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    line-height: 1.5;
    color: #616161;
}
.rank__perks code {
    flex: none;
    max-width: 50%;
    padding: 1px 6px;
    border-radius: 3px;
    background: #ffebee;
    color: #e65100;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
    text-align: right;
}
.rank__more summary { padding: 8px 0; font-size: 13px; font-weight: 800; text-transform: uppercase; color: #ff9800; cursor: pointer; list-style: none; }
.rank__more summary::-webkit-details-marker { display: none; }
.rank__more summary::after { content: ' ▾'; }
.rank__more[open] summary::after { content: ' ▴'; }
.rank__extras { margin: 10px 0 12px; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: #212121; }
.rank__extras li { display: flex; gap: 8px; padding: 3px 0; }
.rank__extras li::before { content: '✓'; color: #43a047; font-weight: 700; }
.rank__buy { margin-top: auto; border-radius: 0; height: 48px; }

/* ---------- Логотипы способов оплаты ---------- */

.pay-logos { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.pay-logo {
    display: inline-grid;
    place-items: center;
    min-width: 64px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}
.pay-logo--mir { color: #0f754e; }
.pay-logo--visa { color: #1a1f71; font-style: italic; }
.pay-logo--mc { color: #eb001b; }
.pay-logo--sbp { color: #5b2d90; }
.pay-logo--img { height: 30px; width: auto; padding: 4px 8px; object-fit: contain; box-sizing: border-box; }
.pay-logo--tbank { color: #333; background: #ffdd2d; border-color: #ffdd2d; }
.pay-logo--tpay { color: #333; }
.pay-logos__bank { display: inline-flex; gap: 8px; }

@media (max-width: 991px) {
    .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .ranks { grid-template-columns: minmax(0, 1fr); }
    .doc { padding: 18px 16px 4px; }
    .rules__section { padding: 18px 16px; }
}
