.phead { text-align: center; padding: clamp(48px, 12vw, 72px) 16px 8px; }
.phead h1 { font-size: clamp(28px, 6vw, 48px); font-weight: 800; letter-spacing: -0.03em; margin: 20px 0 0; }
.phead .lead { color: var(--text-2); margin: 16px 0 0; font-size: clamp(15px, 3.5vw, 17px); }

.trial {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, rgba(0,229,193,0.12), rgba(0,229,193,0.03));
    border: 1px solid rgba(0,229,193,0.35);
    border-radius: 20px;
    padding: clamp(18px, 4vw, 24px) clamp(20px, 4vw, 28px);
    margin: clamp(24px, 6vw, 40px) 0 20px;
    cursor: pointer;
    touch-action: manipulation;
}
.trial .txt .tt { font-size: clamp(17px, 4vw, 19px); font-weight: 700; }
.trial .txt .td { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.trial .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-ink);
    background: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}
.trial .price { font-size: clamp(26px, 7vw, 30px); font-weight: 800; color: var(--accent); white-space: nowrap; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 14px; }
.plan {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(20px, 4vw, 26px);
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    min-height: 44px;
}
.plan.active { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(0,229,193,0.2), 0 16px 44px rgba(0,229,193,0.12); }
.plan .mark {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
}
.plan.active .mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #0e1110; }
.plan .pn { font-size: 15px; color: var(--text-2); padding-right: 28px; }
.plan .pc { font-size: clamp(32px, 8vw, 40px); font-weight: 800; margin: 8px 0 2px; }
.plan .pd { font-size: 13px; color: var(--text-3); }
.plan .pdev { margin-top: 18px; font-size: 14px; color: var(--text-2); border-top: 1px solid var(--border); padding-top: 16px; }

.devices {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    margin: 14px 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-2);
    font-size: 14px;
}
.note { color: var(--text-3); font-size: 13px; text-align: center; margin-bottom: 26px; line-height: 1.5; }

.promo-bottom {
    margin-top: 8px;
    padding: clamp(18px, 4vw, 24px) clamp(16px, 4vw, 22px);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(0,229,193,0.14), rgba(0,229,193,0.04));
    border: 1px solid rgba(0,229,193,0.35);
}
.promo-bottom h2 { margin: 0 0 8px; font-size: clamp(18px, 4vw, 20px); font-weight: 800; }
.promo-bottom p { margin: 0 0 16px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.promo-bottom .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.promo-bottom .price-big { font-size: clamp(28px, 7vw, 36px); font-weight: 800; color: var(--accent); }
.promo-bottom ul { margin: 0 0 18px; padding: 0; list-style: none; }
.promo-bottom li { font-size: 13px; color: var(--text-2); margin: 0 0 8px; padding-left: 18px; position: relative; }
.promo-bottom li::before {
    content: ""; position: absolute; left: 0; top: 3px;
    width: 16px; height: 16px; background: currentColor; color: var(--accent);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>") center / contain no-repeat;
}

.tariffs-sticky-pay {
    position: sticky;
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 20;
    margin-top: 8px;
}

@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.tariffs-page-spacer { display: none; }

@media (max-width: 640px) {
    .plans { grid-template-columns: 1fr; }
    .phead { padding-top: 40px; }
    .tariffs-sticky-pay {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 12px max(16px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
        background: rgba(7,8,9,0.96);
        border-top: 1px solid var(--border);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    .tariffs-page-spacer { display: block; height: 88px; }
}
