/* FlashVPN public — LANE-inspired layout, cyan accent */

:root {
    --pl-bg: #0d0d0d;
    --pl-surface: #121212;
    --pl-border: #242424;
    --pl-muted: #737373;
    --pl-text: #ffffff;
    --pl-fade: rgba(255, 255, 255, 0.5);
    --pl-fade-soft: rgba(255, 255, 255, 0.3);
    --pl-accent: #22d3ee;
    --pl-accent-hot: #67e8f9;
    --pl-accent-ink: #042f2e;
    --pl-accent-glow: rgba(34, 211, 238, 0.35);
    --pl-accent-bright: #22d3ee;
    --pl-radius-pill: 16px;
    --pl-radius-btn: 25px;
    --pl-radius-card: 35px;
    --pl-font: "Manrope", system-ui, sans-serif;
    --pl-display: "Syne", "Manrope", sans-serif;
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

.pl-body {
    margin: 0;
    min-height: 100vh;
    color: var(--pl-text);
    font-family: var(--pl-font);
    background: var(--pl-bg);
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

.pl-body ::selection {
    background: var(--pl-accent);
    color: #000;
}

.pl-shell {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* —— Header —— */
.pl-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 90;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(13, 13, 13, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pl-header__inner {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0.55rem 0.85rem;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

/* Account cabinet: same side gutters as dashboard content */
.pl-shell--account .pl-header__inner,
.pl-shell--account .pl-footer__inner {
    max-width: 1520px;
    padding-left: clamp(1rem, 2.5vw, 1.75rem);
    padding-right: clamp(1rem, 2.5vw, 1.75rem);
}

.pl-header__burger,
.pl-header__avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--pl-border);
    background: rgba(28, 28, 28, 0.55);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pl-header__burger:hover,
.pl-header__avatar:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(34, 211, 238, 0.1);
    color: var(--pl-accent-hot);
}

.pl-header__burger-lines {
    width: 18px;
    height: 12px;
    display: block;
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 5px / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 0 10px / 100% 2px no-repeat;
}

.pl-header__inner > .pl-logo {
    justify-self: center;
    justify-content: center;
    max-width: 100%;
}

.pl-nav {
    display: none;
}

.pl-header__cabinet {
    display: none;
}

@media (min-width: 900px) {
    .pl-header__inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.85rem clamp(1.25rem, 3vw, 3rem);
        gap: 1.25rem;
    }

    .pl-header__burger,
    .pl-header__avatar {
        display: none;
    }

    .pl-header__inner > .pl-logo {
        justify-self: auto;
        justify-content: flex-start;
        margin-right: 0.5rem;
    }

    .pl-nav {
        display: flex;
        align-items: center;
        gap: 0.15rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .pl-header__cabinet {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        margin-left: auto;
        min-height: 44px;
        padding: 0 1.15rem;
        border-radius: 14px;
        border: 1px solid rgba(34, 211, 238, 0.28);
        background: rgba(34, 211, 238, 0.12);
        color: #a5f3fc;
        text-decoration: none;
        font-size: 0.92rem;
        font-weight: 650;
        white-space: nowrap;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .pl-header__cabinet:hover {
        background: rgba(34, 211, 238, 0.2);
        border-color: rgba(34, 211, 238, 0.45);
        color: #ecfeff;
    }

    .pl-header__cabinet-ico {
        display: inline-flex;
        color: inherit;
    }

    .pl-shell--account .pl-header__inner {
        max-width: 1520px;
        padding-left: clamp(1rem, 2.5vw, 1.75rem);
        padding-right: clamp(1rem, 2.5vw, 1.75rem);
    }
}

.pl-nav__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0 0.85rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 550;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.pl-nav__item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.pl-nav__item.is-on {
    color: #fff;
}

.pl-nav__ico {
    display: inline-flex;
    color: inherit;
    flex-shrink: 0;
    opacity: 0.95;
}

.pl-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    font-family: var(--pl-display);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: var(--pl-text);
    text-decoration: none;
    flex-shrink: 1;
}

@media (min-width: 900px) {
    .pl-logo {
        font-size: 1.25rem;
        flex-shrink: 0;
    }
}

.pl-logo__mark {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

@media (min-width: 900px) {
    .pl-logo__mark {
        width: 36px;
        height: 36px;
    }
}

.pl-logo__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pl-logo:hover {
    color: var(--pl-accent-hot);
}

/* Mobile site menu — full-screen overlay above header */
.pl-mnav {
    position: fixed;
    inset: 0;
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.pl-mnav[hidden] {
    display: none !important;
}

.pl-mnav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.pl-mnav__panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(90% 55% at 10% 100%, rgba(34, 211, 238, 0.14), transparent 55%),
        #050505;
    overflow-y: auto;
}

.pl-mnav__stack {
    width: min(100%, 420px);
    margin: 0 auto;
    min-height: calc(100% - 0.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateY(-14px) scale(0.985);
    opacity: 0.55;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease;
}

.pl-mnav.is-open .pl-mnav__stack {
    transform: none;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .pl-mnav,
    .pl-mnav__stack {
        transition-duration: 0.01ms !important;
    }
}

.pl-mnav__brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.95);
    text-decoration: none;
    color: #fff;
    font-family: var(--pl-display);
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.pl-mnav__brand img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.pl-mnav__card {
    display: grid;
    gap: 0.05rem;
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.95);
}

.pl-mnav__card a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 550;
    font-size: 0.98rem;
}

.pl-mnav__card a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.pl-mnav__ico {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    flex-shrink: 0;
}

.pl-mnav__user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 54px;
    padding: 0.95rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(18, 18, 20, 0.95);
    text-decoration: none;
    color: #67e8f9;
    font-weight: 650;
    font-size: 0.98rem;
}

.pl-mnav__user:hover {
    background: rgba(34, 211, 238, 0.08);
    color: #a5f3fc;
}

body.pl-mnav-open {
    overflow: hidden;
}

/* —— Hero —— */
.pl-hero {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 6.5rem 1.15rem 3rem;
    overflow: visible;
}

@media (min-width: 768px) {
    .pl-hero {
        padding: 10rem 1.5rem 5rem;
    }
}

.pl-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .pl-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.pl-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .pl-hero__copy {
        align-items: flex-start;
        text-align: left;
        margin: 0;
    }
}

.pl-headline {
    margin: 0 0 1.5rem;
    font-family: var(--pl-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.02em;
}

.pl-headline__accent {
    color: var(--pl-accent-bright);
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.55);
}

.pl-lead {
    margin: 0 0 2.5rem;
    color: var(--pl-fade);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.65;
    max-width: 30rem;
}

.pl-lead__accent {
    color: var(--pl-accent-bright);
}

.pl-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 640px) {
    .pl-cta {
        flex-direction: row;
        width: auto;
    }
}

.pl-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 65px;
    padding: 0 1.5rem;
    border-radius: var(--pl-radius-btn);
    font-family: var(--pl-font);
    font-size: 1.125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.pl-btn:hover {
    transform: scale(1.05);
}

.pl-btn:active {
    transform: scale(0.95);
}

.pl-btn--primary {
    background: var(--pl-accent);
    color: var(--pl-accent-ink);
    box-shadow: none;
}

.pl-btn--primary:hover {
    background: var(--pl-accent-hot);
}

.pl-btn--ghost {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.pl-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pl-btn--soft {
    background: rgba(34, 211, 238, 0.12);
    border-color: var(--pl-accent);
    color: var(--pl-accent);
}

.pl-btn--soft:hover {
    background: rgba(34, 211, 238, 0.22);
    color: var(--pl-accent-hot);
}

.pl-btn--block {
    width: 100%;
}

.pl-btn:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.pl-btn--sm {
    height: 48px;
    padding: 0 1.15rem;
    font-size: 0.95rem;
    border-radius: var(--pl-radius-pill);
}

/* Hero visual — phone stack */
.pl-hero__visual {
    position: relative;
    height: 380px;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow: visible;
}

@media (min-width: 1024px) {
    .pl-hero__visual {
        height: 550px;
        justify-content: flex-end;
    }
}

.pl-hero__orb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, 125vw);
    height: min(520px, 125vw);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at 50% 50%,
        rgba(34, 211, 238, 0.45) 0%,
        rgba(34, 211, 238, 0.18) 32%,
        rgba(34, 211, 238, 0.05) 58%,
        transparent 74%
    );
    filter: blur(28px);
    opacity: 1;
    animation: pl-orb-pulse 6s ease-in-out infinite;
}

@keyframes pl-orb-pulse {
    0%, 100% { opacity: 0.85; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

.pl-phones {
    position: relative;
    width: min(280px, 82vw);
    height: 100%;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .pl-phones {
        width: min(360px, 100%);
        margin: 0;
    }
}

.pl-phone {
    position: absolute;
    width: 56%;
    aspect-ratio: 9 / 19;
    border-radius: 24px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    background: #000;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.pl-phone--back {
    top: 2.2rem;
    left: 4%;
    transform: rotate(-8deg);
    z-index: 1;
    animation: pl-phone-in-left 0.9s ease-out both;
}

.pl-phone--front {
    top: 0.4rem;
    right: 4%;
    width: 60%;
    border-color: var(--pl-accent);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.3), 0 18px 40px rgba(0, 0, 0, 0.5);
    z-index: 2;
    transform: rotate(6deg);
    animation: pl-phone-in-right 0.9s ease-out 0.1s both;
}

@keyframes pl-phone-in-left {
    from { opacity: 0; transform: translateX(-24px) rotate(-8deg); }
    to { opacity: 1; transform: translateX(0) rotate(-8deg); }
}

@keyframes pl-phone-in-right {
    from { opacity: 0; transform: translateX(24px) rotate(6deg); }
    to { opacity: 1; transform: translateX(0) rotate(6deg); }
}

.pl-phone__screen {
    height: 100%;
    padding: 1.35rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 211, 238, 0.2), transparent 60%),
        linear-gradient(180deg, #0a1218, #05080c);
}

.pl-phone__bar {
    width: 36%;
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 0.5rem;
}

.pl-phone__title {
    font-family: var(--pl-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
}

.pl-phone__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: var(--pl-accent);
}

.pl-phone__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pl-accent);
    box-shadow: 0 0 8px var(--pl-accent);
    animation: pl-dot 1.6s ease-in-out infinite;
}

@keyframes pl-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.pl-phone__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.6rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.7);
}

.pl-phone__row strong {
    color: #fff;
    font-weight: 600;
}

.pl-phone__pill {
    padding: 0.15rem 0.45rem;
    border-radius: 99px;
    background: rgba(34, 211, 238, 0.15);
    color: var(--pl-accent);
    font-size: 0.55rem;
    font-weight: 600;
}

.pl-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.pl-reveal.is-in {
    opacity: 1;
    transform: none;
}

/* —— Sections —— */
.pl-section {
    position: relative;
    z-index: 20;
    padding: 5rem 0;
    /* Keep glow soft; clip only horizontally via .pl-shell / body */
    overflow: visible;
}

.pl-section--cta {
    padding: 8rem 0 6rem;
}

.pl-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.pl-section__head {
    text-align: center;
    margin-bottom: 3rem;
}

.pl-section__head h2 {
    margin: 0 0 1rem;
    font-family: var(--pl-display);
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    color: #fff;
}

.pl-section__head h2 span {
    color: var(--pl-accent-bright);
}

.pl-section__head p {
    margin: 0 auto;
    max-width: 28rem;
    color: var(--pl-fade);
    font-size: 1.05rem;
    line-height: 1.55;
}

.pl-orb-soft {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1100px, 140vw);
    height: min(720px, 90vw);
    pointer-events: none;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    /* Fade to transparent — no hard ellipse edge when clipped */
    background: radial-gradient(
        ellipse 55% 45% at 50% 50%,
        rgba(34, 211, 238, 0.16) 0%,
        rgba(34, 211, 238, 0.07) 35%,
        rgba(34, 211, 238, 0.02) 60%,
        transparent 78%
    );
    filter: blur(40px);
    opacity: 1;
}

/* Feature steps */
.pl-features {
    display: grid;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pl-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.pl-feature {
    padding: 1.5rem 1.35rem;
    border-radius: 28px;
    border: 1px solid #3a3a3a;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(4px);
    transition: border-color 0.25s;
}

.pl-feature:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.pl-feature__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--pl-accent);
    font-family: var(--pl-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.pl-feature h3 {
    margin: 0 0 0.5rem;
    font-family: var(--pl-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.pl-feature p {
    margin: 0;
    color: var(--pl-fade);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Clients row */
.pl-clients {
    list-style: none;
    margin: 2.5rem auto 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    max-width: 1000px;
}

@media (min-width: 700px) {
    .pl-clients {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pl-clients li {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 18, 0.55);
}

.pl-clients strong {
    font-family: var(--pl-display);
    font-size: 1rem;
}

.pl-clients a {
    color: var(--pl-accent);
    text-decoration: none;
    font-size: 0.88rem;
}

.pl-clients a:hover {
    color: var(--pl-accent-hot);
}

.pl-clients__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0;
    line-height: 1.5;
}

/* Mid CTA */
.pl-mid-cta {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pl-mid-cta h2 {
    margin: 0 0 1.25rem;
    font-family: var(--pl-font);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
}

.pl-mid-cta p {
    margin: 0 0 2.5rem;
    color: var(--pl-fade);
    font-size: 1.05rem;
    line-height: 1.6;
}

.pl-mid-cta .pl-cta {
    justify-content: center;
}

/* Pricing */
.pl-pricing {
    display: grid;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pl-pricing {
        grid-template-columns: repeat(2, 1fr);
    }

    /* одиночный в последнем ряду — ширина как у обычной карточки, по центру */
    .pl-pricing > .pl-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: calc((100% - 1.5rem) / 2);
        justify-self: center;
    }
}

@media (min-width: 1100px) {
    .pl-pricing {
        grid-template-columns: repeat(3, 1fr);
    }

    .pl-pricing > .pl-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        justify-self: stretch;
    }

    /* ровно 4 тарифа → аккуратная сетка 2×2 */
    .pl-pricing:has(> .pl-card:nth-child(4):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 56rem;
    }

    /* ровно 2 → две колонки */
    .pl-pricing:has(> .pl-card:nth-child(2):last-child) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 56rem;
    }

    /* один тариф */
    .pl-pricing:has(> .pl-card:only-child) {
        grid-template-columns: minmax(0, 22rem);
        justify-content: center;
        max-width: none;
    }

    /* 5, 7… — последний один в ряду: не растягивать, а центрировать */
    .pl-pricing:not(:has(> .pl-card:nth-child(4):last-child))
        > .pl-card:last-child:nth-child(3n + 1) {
        grid-column: 1 / -1;
        width: 100%;
        max-width: calc((100% - 3rem) / 3);
        justify-self: center;
    }
}

.pl-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--pl-radius-card);
    border: 1px solid #3a3a3a;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(4px);
    overflow: hidden;
    transition: border-color 0.25s;
}

.pl-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.pl-card--accent {
    border-color: var(--pl-accent);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
}

.pl-card h3 {
    margin: 0 0 1rem;
    font-family: var(--pl-display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
}

.pl-card__price {
    margin: 0 0 0.35rem;
    font-family: var(--pl-display);
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
}

.pl-card__meta {
    margin: 0 0 1.25rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
}

.pl-card__list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.pl-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.4;
}

.pl-card__list li::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--pl-accent);
    flex-shrink: 0;
}

.pl-card .pl-pay-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.pl-card .pl-pay-row .pl-btn {
    height: 48px;
    padding: 0 1rem;
    font-size: 0.92rem;
    border-radius: 16px;
    flex: 1;
    min-width: 5.5rem;
}

.pl-disclaimer {
    margin: 2.5rem auto 0;
    max-width: 42rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* Contact */
.pl-contact {
    max-width: 56rem;
    margin: 0 auto;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(12px);
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .pl-contact {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 2.5rem 3rem;
    }
}

.pl-contact::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 280px;
    background: rgba(34, 211, 238, 0.1);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
}

.pl-contact h3 {
    margin: 0 0 0.65rem;
    font-family: var(--pl-display);
    font-size: 1.5rem;
}

.pl-contact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.5;
}

.pl-contact__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .pl-contact__actions {
        justify-content: flex-end;
    }
}

.pl-contact__link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: border-color 0.25s, background 0.25s, color 0.25s;
    flex-shrink: 0;
}

.pl-contact__link:hover {
    border-color: rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.1);
    color: var(--pl-accent);
}

/* Footer */
.pl-footer {
    position: relative;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, transparent, rgba(17, 17, 17, 0.8));
    padding: 3rem 1.5rem 2.5rem;
}

.pl-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
}

.pl-footer__top {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .pl-footer__top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.pl-footer__brand {
    max-width: 22rem;
}

.pl-footer__brand .pl-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.pl-footer__brand p {
    margin: 0;
    color: var(--pl-fade);
    font-size: 0.88rem;
    line-height: 1.55;
}

.pl-footer__cols {
    display: flex;
    gap: 3rem;
}

.pl-footer__cols h4 {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.pl-footer__cols ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pl-footer__cols a {
    color: var(--pl-fade);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.pl-footer__cols a:hover {
    color: var(--pl-accent);
}

.pl-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .pl-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.pl-footer__bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.pl-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.pl-footer__legal a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.75rem;
}

.pl-footer__legal a:hover {
    color: var(--pl-accent);
}

/* Page variants: buy / auth / account */
.pl-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 7.5rem 1.5rem 4rem;
}

.pl-page__title {
    margin: 0 0 0.75rem;
    font-family: var(--pl-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.pl-page__lead {
    margin: 0 0 2.5rem;
    color: var(--pl-fade);
    font-size: 1.05rem;
    max-width: 36rem;
    line-height: 1.55;
}

.pl-banner {
    margin: 0 0 1.5rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #fde68a;
}

.pl-banner a {
    color: #fef3c7;
}

.pl-hint {
    margin: 0.75rem 0 0;
    color: #fbbf24;
    font-size: 0.92rem;
}

.pl-auth {
    width: min(26rem, 100%);
}

.pl-auth h1 {
    margin: 0 0 0.5rem;
    font-family: var(--pl-display);
    font-size: 2rem;
    font-weight: 800;
}

.pl-field {
    display: grid;
    gap: 0.35rem;
    margin: 0.9rem 0;
}

/* Author display rules beat the UA [hidden] stylesheet — force hide. */
.pl-field[hidden],
.pl-auth-form [hidden] {
    display: none !important;
}

.pl-field label {
    font-size: 0.88rem;
    color: var(--pl-muted);
}

.pl-field input {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(18, 18, 18, 0.85);
    color: #e2e8f0;
    padding: 0.85rem 1rem;
    font: inherit;
}

.pl-field input:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.65);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.pl-auth-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.pl-auth-actions .pl-btn {
    height: 56px;
    border-radius: 18px;
    font-size: 1rem;
}

.pl-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--pl-muted);
    font-size: 0.82rem;
    margin: 0.2rem 0;
}

.pl-divider::before,
.pl-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.pl-auth-foot {
    margin-top: 1.35rem;
    color: var(--pl-fade);
    font-size: 0.92rem;
}

.pl-auth-foot a {
    color: var(--pl-accent);
    text-decoration: none;
}

.pl-auth-foot a:hover {
    color: var(--pl-accent-hot);
}

.pl-auth-step-note {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #94a3b8;
}

.pl-page--auth {
    max-width: 1120px;
}

.pl-auth-layout {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

.pl-auth-aside {
    display: none;
}

@media (min-width: 960px) {
    .pl-auth-layout {
        grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: center;
        min-height: min(30rem, 62vh);
    }

    .pl-auth-aside {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 28rem;
        padding: 1.5rem 1rem;
        overflow: hidden;
        isolation: isolate;
        border-radius: 28px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background:
            radial-gradient(ellipse 80% 70% at 70% 20%, rgba(34, 211, 238, 0.18), transparent 55%),
            radial-gradient(ellipse 60% 50% at 15% 85%, rgba(14, 116, 144, 0.22), transparent 50%),
            linear-gradient(160deg, #141414 0%, #0a1216 55%, #0d0d0d 100%);
    }

    .pl-auth-aside__glow {
        position: absolute;
        inset: -20% -10% auto auto;
        width: 18rem;
        height: 18rem;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 68%);
        filter: blur(28px);
        pointer-events: none;
        z-index: 0;
        animation: pl-auth-pulse 7s ease-in-out infinite;
    }

    .pl-auth-aside__visual {
        position: relative;
        z-index: 1;
        width: min(340px, 100%);
        height: 26rem;
        margin: 0 auto;
    }

    .pl-auth-aside__visual .pl-phones {
        width: 100%;
        height: 100%;
        margin: 0;
    }
}

@keyframes pl-auth-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* Compact top aliases for older markup */
.pl-top {
    display: none;
}

/* Checkout modal on /buy */
.lk-promo__label { display: block; margin: 0 0 0.4rem; color: #94a3b8; font-size: 0.82rem; font-weight: 700; }
.lk-promo__row { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: stretch; }
.lk-promo__input {
    flex: 1 1 160px; min-width: 0; min-height: 44px; border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(8, 15, 30, 0.75);
    color: #e2e8f0; padding: 0 0.9rem; font: 600 0.92rem/1.2 Manrope, ui-sans-serif, system-ui, sans-serif;
}
.lk-promo__status { margin: 0.45rem 0 0; color: #67e8f9; font-size: 0.85rem; }
.lk-quote {
    border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.5); padding: 0.85rem 1rem; display: grid; gap: 0.4rem;
    margin-bottom: 0.95rem;
}
.lk-quote__row { display: flex; justify-content: space-between; gap: 1rem; color: #94a3b8; font-size: 0.88rem; }
.lk-quote__row strong { color: #e2e8f0; font-weight: 700; }
.lk-quote__row--total {
    margin-top: 0.2rem; padding-top: 0.45rem; border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #cbd5e1; font-weight: 700;
}
.lk-quote__row--total strong { color: #67e8f9; font-size: 1rem; }
.lk-pay-methods {
    margin: 1rem 0 0; padding: 0; border: 0; display: grid; gap: 0.55rem;
}
.lk-pay-methods__legend {
    margin: 0 0 0.35rem; color: #94a3b8; font-size: 0.82rem; font-weight: 700;
}
.lk-pay-method {
    display: flex; align-items: flex-start; gap: 0.7rem; margin: 0;
    padding: 0.85rem 0.95rem; border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18); background: rgba(8, 15, 30, 0.55);
    cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.lk-pay-method:has(input:checked) {
    border-color: rgba(34, 211, 238, 0.45); background: rgba(8, 47, 73, 0.35);
}
.lk-pay-method.is-disabled { opacity: 0.45; cursor: not-allowed; }
.lk-pay-method input { margin-top: 0.2rem; accent-color: #22d3ee; }
.lk-pay-method__body { display: grid; gap: 0.15rem; min-width: 0; }
.lk-pay-method__title { color: #e2e8f0; font-size: 0.92rem; font-weight: 700; }
.lk-pay-method__sub { color: #94a3b8; font-size: 0.8rem; }

body.lk-modal-open { overflow: hidden; }
.lk-modal {
    position: fixed; inset: 0; z-index: 80;
    display: grid; place-items: center; padding: 1rem;
}
.lk-modal[hidden] { display: none !important; }
.lk-modal__backdrop {
    position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
    background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(6px);
}
.lk-modal__dialog {
    position: relative; z-index: 1; width: min(100%, 440px);
    border-radius: 20px; border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, #121826 0%, #0b1220 100%);
    padding: 1.25rem 1.2rem 1.15rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    animation: lk-modal-in 0.22s ease;
}
@keyframes lk-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.lk-modal__title {
    margin: 0; font: 800 1.2rem/1.25 Syne, ui-sans-serif, system-ui, sans-serif; color: #f8fafc;
}
.lk-modal__lead {
    margin: 0.45rem 0 1rem; color: #94a3b8; font-size: 0.9rem; line-height: 1.45;
}
.lk-modal__status {
    margin: 0.85rem 0 0; color: #67e8f9; font-size: 0.85rem; font-weight: 600;
}
.lk-modal__status.is-error { color: #fbbf24; }
.lk-modal__actions {
    display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.1rem;
}


/* Legal documents */
.pl-legal {
    max-width: 820px;
    margin: 0 auto;
    padding: 7.5rem 1.5rem 4rem;
}

.pl-legal__head {
    margin-bottom: 1.75rem;
}

.pl-legal__kicker {
    margin: 0 0 0.55rem;
    color: var(--pl-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pl-legal__title {
    margin: 0 0 0.65rem;
    font-family: var(--pl-display);
    font-weight: 800;
    font-size: clamp(1.85rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    color: #f8fafc;
}

.pl-legal__meta {
    margin: 0;
    color: var(--pl-fade);
    font-size: 0.92rem;
}

.pl-legal__notice {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(8, 47, 73, 0.35);
    color: #dbeafe;
    font-size: 0.92rem;
    line-height: 1.55;
}

.pl-legal__notice a {
    color: var(--pl-accent-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pl-legal__toc {
    margin: 0 0 2rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.45);
}

.pl-legal__toc strong {
    display: block;
    margin-bottom: 0.65rem;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.pl-legal__toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
}

.pl-legal__toc a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}

.pl-legal__toc a:hover {
    color: var(--pl-accent);
}

.pl-legal__doc {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.7;
}

.pl-legal__doc h2 {
    margin: 2.1rem 0 0.85rem;
    padding-top: 0.35rem;
    font-family: var(--pl-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: #f1f5f9;
    scroll-margin-top: 5.5rem;
}

.pl-legal__doc p {
    margin: 0 0 0.85rem;
}

.pl-legal__doc ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.pl-legal__doc li {
    margin: 0.35rem 0;
}

.pl-legal__doc a {
    color: var(--pl-accent-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pl-legal__doc a:hover {
    color: #a5f3fc;
}

.pl-legal__highlight {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border-left: 3px solid var(--pl-accent);
    background: rgba(8, 47, 73, 0.3);
    color: #e0f2fe;
    font-size: 0.92rem;
}

.pl-legal__card {
    margin: 0.85rem 0;
    padding: 0.95rem 1.05rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.45);
}

.pl-legal__card strong {
    color: #e2e8f0;
}

.pl-legal__table-wrap {
    overflow-x: auto;
    margin: 0.85rem 0 1.15rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.pl-legal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.pl-legal__table th,
.pl-legal__table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left;
    vertical-align: top;
}

.pl-legal__table th {
    color: #67e8f9;
    font-weight: 700;
    background: rgba(8, 47, 73, 0.35);
}

.pl-legal__table tr:last-child td {
    border-bottom: 0;
}

.pl-legal__foot {
    margin: 2.5rem 0 0;
    color: rgba(148, 163, 184, 0.7);
    font-size: 0.82rem;
}

@media (max-width: 640px) {
    .pl-legal {
        padding-top: 6.5rem;
    }
}
