/* =========================================================
   ГЛАВНАЯ: единый «неоновый» стиль в духе параллакс-шапки
   (стекло, градиентные рамки, свечение, параллакс-орбы, появление при прокрутке).
   Подключается только на главной; действует, когда на странице есть hero с фоном.
   ========================================================= */

:root {
    --neon-1: #4f39f6;
    --neon-2: #8b5cf6;
    --neon-3: #ec4899;
    --neon-4: #38bdf8;
    --neon-grad: linear-gradient(110deg, #4f39f6 0%, #8b5cf6 45%, #ec4899 100%);
    --neon-glass: linear-gradient(160deg, rgba(79, 57, 246, .12) 0%, rgba(255, 255, 255, .025) 42%, rgba(236, 72, 153, .06) 100%);
}

@property --neon-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

/* ---------- секции: общий фон и параллакс-орбы ---------- */

body:has(.quick-actions-header) section.section-padding-large {
    position: relative;
    isolation: isolate;
}

/* ---------- заголовки секций ---------- */

body:has(.quick-actions-header) .hero-headline {
    background: linear-gradient(180deg, #ffffff 30%, #c4b5fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- стеклянные карточки ---------- */

body:has(.quick-actions-header) .regular-plan-card,
body:has(.quick-actions-header) .basic-features-card,
body:has(.quick-actions-header) .review-card,
body:has(.quick-actions-header) .switch-demo-card,
body:has(.quick-actions-header) .hosting-solutions-section .ui-content {
    background: var(--neon-glass) !important;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, .07) !important;

    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);

    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

body:has(.quick-actions-header) .regular-plan-card:hover,
body:has(.quick-actions-header) .basic-features-card:hover,
body:has(.quick-actions-header) .review-card:hover {
    transform: translateY(-5px);

    border-color: rgba(139, 92, 246, .45) !important;

    box-shadow:
        0 24px 70px rgba(0, 0, 0, .45),
        0 0 46px rgba(139, 92, 246, .22);
}

/* ---------- появление при прокрутке ---------- */

.neon-reveal {
    opacity: 0;
    transform: translateY(26px);

    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--neon-delay, 0ms);
}

.neon-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .neon-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- блок «Попробуйте демо» ---------- */

body:has(.quick-actions-header) .demo-plan-card {
    background:
        radial-gradient(900px 420px at 85% 0%, rgba(139, 92, 246, .22), transparent 60%),
        radial-gradient(700px 380px at 0% 100%, rgba(236, 72, 153, .14), transparent 60%),
        rgba(14, 14, 24, .78);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow:
        0 30px 90px rgba(79, 57, 246, .28),
        0 0 80px rgba(236, 72, 153, .10);
}

/* бегущая градиентная рамка */
body:has(.quick-actions-header) .demo-plan-card::after {
    background: conic-gradient(
        from var(--neon-angle),
        #4f39f6, #8b5cf6, #ec4899, #38bdf8, #4f39f6
    );

    animation: neon-border-spin 7s linear infinite;
}

@keyframes neon-border-spin {
    to { --neon-angle: 360deg; }
}

/* сетка из точек на фоне карточки */
body:has(.quick-actions-header) .demo-plan-card::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.4px);
    background-size: 26px 26px;

    -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%);

    pointer-events: none;
}

body:has(.quick-actions-header) .demo-plan-title {
    background: linear-gradient(100deg, #ffffff 20%, #c4b5fd 60%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body:has(.quick-actions-header) .demo-plan-stat {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .10);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body:has(.quick-actions-header) .demo-plan-stat i {
    color: var(--neon-2);
}

/* плашка «1 день бесплатно» */
.demo-neon-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;
    padding: 7px 14px;

    color: #e9e5ff;

    background: rgba(139, 92, 246, .14);
    border: 1px solid rgba(139, 92, 246, .4);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
}

.demo-neon-pill i {
    width: 8px;
    height: 8px;

    background: var(--neon-4);
    border-radius: 50%;

    box-shadow: 0 0 12px var(--neon-4);

    animation: neon-pulse 1.8s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .45; transform: scale(.7); }
}

/* орбита: параллакс от курсора (--mx/--my задаёт JS) */
.demo-plan-visual .demo-orbit {
    transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 10px), 0);

    transition: transform .25s ease-out;
}

.demo-plan-glow-1 {
    transform: translate3d(calc(var(--mx, 0) * -28px), calc(var(--my, 0) * -20px), 0);

    transition: transform .3s ease-out;
}

.demo-plan-glow-2 {
    transform: translate3d(calc(var(--mx, 0) * 22px), calc(var(--my, 0) * 16px), 0);

    transition: transform .3s ease-out;
}

/* ---------- кнопки: яркий градиент ---------- */

body:has(.quick-actions-header) .demo-plan-actions .btn-primary,
.plan-card-popular .plan-action .btn,
.plan-card-best .plan-action .btn {
    color: #fff !important;

    background: var(--neon-grad) !important;
    background-size: 160% 100%;

    border: 0 !important;

    font-weight: 600;

    box-shadow:
        0 8px 30px rgba(139, 92, 246, .5),
        0 0 40px rgba(236, 72, 153, .22);

    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}

body:has(.quick-actions-header) .demo-plan-actions .btn-primary:hover,
.plan-card-popular .plan-action .btn:hover,
.plan-card-best .plan-action .btn:hover {
    background-position: 100% 0;

    transform: translateY(-2px);

    box-shadow:
        0 12px 40px rgba(139, 92, 246, .7),
        0 0 60px rgba(236, 72, 153, .4);
}

/* ---------- тарифы: цена в месяц ---------- */

.plan-permonth {
    display: flex;
    align-items: baseline;
    gap: 6px;

    margin: 14px 0 0;

    color: var(--muted-foreground, #a1a1ad);

    font-size: 14px;
}

.plan-permonth strong {
    color: #fff;

    font-size: 18px;
    font-weight: 700;
}

/* лучшая цена: 12 месяцев — «83 ₽ / мес» */
.plan-card-best {
    position: relative;

    background:
        radial-gradient(420px 220px at 50% 0%, rgba(139, 92, 246, .28), transparent 70%),
        var(--neon-glass) !important;

    box-shadow:
        0 24px 80px rgba(79, 57, 246, .35),
        0 0 60px rgba(236, 72, 153, .16) !important;
}

.plan-card-best::after {
    content: "";

    position: absolute;
    inset: 0;
    padding: 2px;

    border-radius: inherit;

    background: conic-gradient(from var(--neon-angle), #4f39f6, #8b5cf6, #ec4899, #38bdf8, #4f39f6);

    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;

    animation: neon-border-spin 7s linear infinite;
}

.plan-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    z-index: 3;

    transform: translateX(-50%);

    padding: 6px 16px;

    color: #fff;

    background: var(--neon-grad);
    border-radius: 999px;

    box-shadow: 0 8px 26px rgba(139, 92, 246, .55);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
}

.plan-permonth-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;

    margin-top: 14px;
    padding: 12px 16px;

    background: rgba(139, 92, 246, .12);
    border: 1px solid rgba(139, 92, 246, .35);
    border-radius: 14px;
}

.plan-permonth-hero .plan-permonth-value {
    background: linear-gradient(100deg, #ffffff 10%, #c4b5fd 55%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-size: 40px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
}

.plan-permonth-hero .plan-permonth-value small {
    -webkit-text-fill-color: #c4b5fd;

    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.plan-permonth-hero span {
    color: #c4b5fd;

    font-size: 13px;
}


/* кнопки «Подключить» на одном уровне: блок цены — колонка, кнопка прижата вниз */
@media (min-width: 768px) {
    .basic-plans-section .plan-card .plan-header {
        display: flex;
        flex-direction: column;

        min-height: 420px;
    }

    .basic-plans-section .plan-card .plan-action {
        margin-top: auto;
    }
}

.plan-permonth {
    margin-bottom: 18px;
}

.plan-permonth-hero {
    justify-content: center;
}

/* ленточка «Лучшая цена» не должна обрезаться краем карточки */
.plan-card-best {
    overflow: visible !important;
}

.basic-plans-section .plans-grid {
    padding-top: 18px;
}

/* шапка на главной: без подложки и без закрепления — логотип и кнопки поверх фона, уезжают при прокрутке */
body:has(.quick-actions-header) .theme-navbar {
    position: absolute !important;

    background: transparent !important;

    -webkit-backdrop-filter: none;
    backdrop-filter: none;

    box-shadow: none !important;
    border: 0 !important;
}

body:has(.quick-actions-header) .theme-navbar .animated-bg {
    display: none !important;
}


/* =========================================================
   Неоновая карта серверов
   ========================================================= */

.neon-map {
    position: relative;

    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;

    transform-style: preserve-3d;
    transition: transform .25s ease-out;

    will-change: transform;
}

/* подсветка за картой */
.neon-map::before {
    content: "";

    position: absolute;
    inset: 4% 8%;
    z-index: -1;

    background:
        radial-gradient(40% 45% at 30% 45%, rgba(79, 57, 246, .35), transparent 70%),
        radial-gradient(35% 45% at 80% 55%, rgba(236, 72, 153, .28), transparent 70%);

    filter: blur(60px);
}

.neon-map canvas {
    display: block;

    width: 100%;
    height: auto;
}

.neon-map-label {
    position: absolute;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px 8px 10px;

    color: #fff;

    background: rgba(14, 14, 24, .78);
    border: 1px solid rgba(139, 92, 246, .45);
    border-radius: 999px;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow: 0 10px 34px rgba(0, 0, 0, .5), 0 0 28px rgba(139, 92, 246, .28);

    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;

    /* над маркером; --px/--py задаёт JS для параллакса подписей */
    transform: translate(calc(-50% + var(--px, 0px)), calc(-165% + var(--py, 0px)));

    pointer-events: none;
}

.neon-map-label img {
    width: 22px;
    height: 22px;

    border-radius: 50%;
    object-fit: cover;
}

.neon-map-online {
    width: 8px;
    height: 8px;

    background: #22c55e;
    border-radius: 50%;

    box-shadow: 0 0 10px #22c55e;

    animation: neon-pulse 1.8s ease-in-out infinite;
}

@media (max-width: 767.98px) {
    .neon-map-label {
        padding: 5px 10px 5px 7px;

        font-size: 12px;
    }

    .neon-map-label img {
        width: 16px;
        height: 16px;
    }
}


/* =========================================================
   Тарифы: четыре равных карточки, лучшая — выделена
   ========================================================= */

.pricing-neon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;

    max-width: 1580px;
    margin: 0 auto;
    padding-top: 26px;
}

.pricing-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 38px 34px 34px;

    background: var(--neon-glass);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);

    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.pricing-card:hover {
    transform: translateY(-6px);

    border-color: rgba(139, 92, 246, .5);

    box-shadow: 0 26px 70px rgba(0, 0, 0, .45), 0 0 46px rgba(139, 92, 246, .24);
}

.pricing-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pricing-term {
    margin: 0;

    color: #fff;

    font-size: 24px;
    font-weight: 700;
}

.pricing-discount {
    padding: 6px 13px;

    color: #fff;

    background: rgba(34, 197, 94, .16);
    border: 1px solid rgba(34, 197, 94, .5);
    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.pricing-monthly {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 36px;
}

.pricing-monthly-value {
    color: #fff;

    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.pricing-monthly-unit {
    color: var(--muted-foreground, #a1a1ad);

    font-size: 17px;
}

.pricing-total {
    margin-top: 12px;

    color: var(--muted-foreground, #a1a1ad);

    font-size: 16px;
}

.pricing-save {
    margin: 28px 0 34px;
}

.pricing-save-bar {
    height: 8px;

    background: rgba(255, 255, 255, .08);
    border-radius: 99px;

    overflow: hidden;
}

.pricing-save-bar span {
    display: block;

    width: var(--w, 0%);
    height: 100%;

    background: linear-gradient(90deg, #22c55e, #38bdf8);
    border-radius: 99px;
}

.pricing-save-text {
    margin-top: 11px;

    color: #86efac;

    font-size: 16px;
    font-weight: 600;
}

.pricing-save--none .pricing-save-text {
    margin-top: 0;
    padding-top: 15px;

    color: var(--muted-foreground, #a1a1ad);
    font-weight: 500;
}

.pricing-cta {
    margin-top: auto;

    width: 100%;
    padding: 18px 20px;

    color: #0b0b10;
    background: #fff;
    border: 0;
    border-radius: 16px;

    font-size: 17px;
    font-weight: 700;
    text-align: center;

    transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-cta:hover {
    color: #0b0b10;

    transform: translateY(-2px);

    box-shadow: 0 10px 30px rgba(255, 255, 255, .2);
}

/* лучший тариф */
.pricing-card--best {
    background:
        radial-gradient(420px 240px at 50% 0%, rgba(139, 92, 246, .30), transparent 70%),
        var(--neon-glass);

    border-color: transparent;

    box-shadow: 0 26px 80px rgba(79, 57, 246, .38), 0 0 60px rgba(236, 72, 153, .16);
}

.pricing-card--best::after {
    content: "";

    position: absolute;
    inset: 0;
    padding: 2px;

    border-radius: inherit;

    background: conic-gradient(from var(--neon-angle), #4f39f6, #8b5cf6, #ec4899, #38bdf8, #4f39f6);

    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;

    animation: neon-border-spin 7s linear infinite;
}

.pricing-card--best .pricing-monthly-value {
    background: linear-gradient(100deg, #ffffff 10%, #c4b5fd 55%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card--best .pricing-cta {
    color: #fff;

    background: var(--neon-grad);
    background-size: 160% 100%;

    box-shadow: 0 8px 30px rgba(139, 92, 246, .5);
}

.pricing-card--best .pricing-cta:hover {
    color: #fff;

    background-position: 100% 0;

    box-shadow: 0 12px 40px rgba(139, 92, 246, .7);
}

.pricing-ribbon {
    position: absolute;
    top: -16px;
    left: 50%;
    z-index: 3;

    transform: translateX(-50%);

    padding: 8px 22px;

    color: #fff;

    background: var(--neon-grad);
    border-radius: 999px;

    box-shadow: 0 8px 26px rgba(139, 92, 246, .55);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    white-space: nowrap;
}

/* общее для всех тарифов — один раз, а не в каждой карточке */
.pricing-includes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 14px;

    max-width: 1280px;
    margin: 44px auto 0;
    padding: 0;

    list-style: none;
}

.pricing-includes li {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 12px 22px;

    color: #e5e7eb;

    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 999px;

    font-size: 15px;
    font-weight: 500;
}

.pricing-includes i {
    color: #22c55e;
}

@media (max-width: 1199.98px) {
    .pricing-neon {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        max-width: 860px;
    }
}

@media (max-width: 575.98px) {
    .pricing-neon {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* на телефоне лучший тариф — первым */
    .pricing-card--best {
        order: -1;
    }

    .pricing-card {
        padding: 28px 24px 26px;
    }

    .pricing-monthly-value {
        font-size: 52px;
    }

    .pricing-includes li {
        padding: 8px 14px;

        font-size: 13px;
    }
}


/* =========================================================
   Блок «Как подключить»: карточка помощи
   ========================================================= */

.connect-help {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    width: auto;
    max-width: 980px;
    margin: 44px auto 0;
    padding: 28px 32px;

    background:
        radial-gradient(520px 200px at 0% 0%, rgba(79, 57, 246, .26), transparent 70%),
        radial-gradient(420px 200px at 100% 100%, rgba(236, 72, 153, .18), transparent 70%),
        rgba(14, 14, 24, .72);

    border: 1px solid rgba(139, 92, 246, .35);
    border-radius: 22px;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, .4), 0 0 46px rgba(139, 92, 246, .16);
}

.connect-help-title {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #fff;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.connect-help-title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #fff;

    background: var(--neon-grad);
    border-radius: 13px;

    box-shadow: 0 8px 24px rgba(139, 92, 246, .5);

    font-size: 18px;
}

.connect-help-desc {
    margin: 12px 0 0;

    max-width: 560px;

    color: var(--muted-foreground, #a1a1ad);

    font-size: 15px;
    line-height: 1.6;
}

.connect-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    flex-shrink: 0;
}

.connect-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 13px 22px;

    border-radius: 14px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition: transform .2s ease, box-shadow .2s ease;
}

.connect-help-btn--chat {
    color: #fff;

    background: var(--neon-grad);

    box-shadow: 0 8px 26px rgba(139, 92, 246, .5);
}

.connect-help-btn--tg {
    color: #fff;

    background: rgba(56, 189, 248, .12);
    border: 1px solid rgba(56, 189, 248, .5);
}

.connect-help-btn:hover {
    color: #fff;

    transform: translateY(-2px);
}

.connect-help-btn--chat:hover {
    box-shadow: 0 12px 38px rgba(139, 92, 246, .7);
}

.connect-help-btn--tg:hover {
    box-shadow: 0 10px 30px rgba(56, 189, 248, .3);
}

@media (max-width: 991.98px) {
    .connect-help {
        flex-direction: column;
        align-items: flex-start;

        padding: 24px 22px;
    }

    .connect-help-actions {
        width: 100%;
    }

    .connect-help-btn {
        flex: 1 1 100%;
    }

    .connect-help-title {
        font-size: 19px;
    }
}


/* =========================================================
   Демо: неоновый щит с кольцами вместо орбиты с иконками
   ========================================================= */

.demo-scene {
    position: relative;

    width: 400px;
    height: 400px;

    transform: translate3d(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 9px), 0);

    transition: transform .25s ease-out;
}

.demo-ring,
.demo-wave {
    position: absolute;
    top: 50%;
    left: 50%;

    border-radius: 50%;

    transform: translate(-50%, -50%);
}

.demo-ring-1 {
    width: 380px;
    height: 380px;

    border: 1px dashed rgba(139, 92, 246, .45);

    animation: demo-spin 40s linear infinite;
}

.demo-ring-2 {
    width: 290px;
    height: 290px;

    border: 1px solid rgba(139, 92, 246, .35);

    animation: demo-spin 26s linear infinite reverse;
}

.demo-ring-2::before,
.demo-ring-1::before {
    content: "";

    position: absolute;
    top: -5px;
    left: 50%;

    width: 10px;
    height: 10px;

    background: #8b5cf6;
    border-radius: 50%;

    box-shadow: 0 0 18px 4px rgba(139, 92, 246, .9);
}

.demo-ring-1::before {
    top: auto;
    bottom: 40px;
    left: 18px;

    background: #ec4899;

    box-shadow: 0 0 18px 4px rgba(236, 72, 153, .9);
}

.demo-ring-2::after {
    content: "";

    position: absolute;
    bottom: 28px;
    right: 28px;

    width: 8px;
    height: 8px;

    background: #38bdf8;
    border-radius: 50%;

    box-shadow: 0 0 16px 4px rgba(56, 189, 248, .9);
}

.demo-ring-3 {
    width: 200px;
    height: 200px;

    background: radial-gradient(circle, rgba(139, 92, 246, .30), transparent 70%);
    border: 1px solid rgba(139, 92, 246, .25);

    animation: demo-breathe 5s ease-in-out infinite;
}

.demo-wave {
    width: 130px;
    height: 130px;

    border: 2px solid rgba(139, 92, 246, .55);

    opacity: 0;

    animation: demo-wave 4s ease-out infinite;
}

.demo-wave-2 {
    animation-delay: 2s;
}

.demo-shield {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 130px;
    height: 130px;

    margin-top: -65px;
    margin-left: -65px;

    color: #fff;

    background: linear-gradient(140deg, #4f39f6 0%, #8b5cf6 55%, #ec4899 100%);
    border-radius: 36px;

    box-shadow:
        0 0 0 10px rgba(139, 92, 246, .14),
        0 24px 70px rgba(79, 57, 246, .65),
        0 0 80px rgba(236, 72, 153, .3);

    font-size: 54px;

    animation: demo-float 6s ease-in-out infinite;
}

.demo-chip {
    position: absolute;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 16px;

    color: #fff;

    background: rgba(14, 14, 24, .8);
    border: 1px solid rgba(139, 92, 246, .45);
    border-radius: 16px;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow: 0 12px 36px rgba(0, 0, 0, .5), 0 0 26px rgba(139, 92, 246, .25);

    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.demo-chip--time {
    top: 28px;
    right: -6px;

    flex-direction: column;
    align-items: flex-start;
    gap: 2px;

    translate: calc(var(--mx, 0) * -20px) calc(var(--my, 0) * -14px);

    animation: demo-bob 5s ease-in-out infinite;
}

.demo-chip--time strong {
    background: var(--neon-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
}

.demo-chip--time span {
    color: #c4b5fd;

    font-size: 12px;
    font-weight: 500;
}

.demo-chip--speed {
    bottom: 56px;
    left: -14px;

    translate: calc(var(--mx, 0) * -26px) calc(var(--my, 0) * -18px);

    animation: demo-bob 6s ease-in-out infinite reverse;
}

.demo-chip--speed i {
    color: #fbbf24;
}

.demo-chip--secure {
    right: 18px;
    bottom: 22px;

    translate: calc(var(--mx, 0) * -16px) calc(var(--my, 0) * -10px);

    animation: demo-bob 7s ease-in-out infinite;
}

.demo-chip-dot {
    width: 9px;
    height: 9px;

    background: #22c55e;
    border-radius: 50%;

    box-shadow: 0 0 12px #22c55e;

    animation: neon-pulse 1.8s ease-in-out infinite;
}

@keyframes demo-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

@keyframes demo-breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; }
    50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

@keyframes demo-wave {
    0% { opacity: .65; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

@keyframes demo-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes demo-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .demo-ring, .demo-wave, .demo-shield, .demo-chip, .demo-ring-3 { animation: none !important; }
}


/* =========================================================
   «Сколько стоит один день» — в стиле тарифов и демо
   ========================================================= */

body:has(.quick-actions-header) .per-day-card {
    background:
        radial-gradient(800px 380px at 0% 0%, rgba(79, 57, 246, .24), transparent 62%),
        radial-gradient(700px 360px at 100% 100%, rgba(236, 72, 153, .16), transparent 62%),
        rgba(14, 14, 24, .78);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow: 0 30px 90px rgba(79, 57, 246, .26), 0 0 80px rgba(236, 72, 153, .08);
}

/* бегущая градиентная рамка, как у демо */
body:has(.quick-actions-header) .per-day-card::after {
    background: conic-gradient(from var(--neon-angle), #4f39f6, #8b5cf6, #ec4899, #38bdf8, #4f39f6);

    animation: neon-border-spin 8s linear infinite;
}

/* сетка точек */
body:has(.quick-actions-header) .per-day-card::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.4px);
    background-size: 26px 26px;

    -webkit-mask-image: radial-gradient(ellipse at 20% 10%, #000 0%, transparent 65%);
    mask-image: radial-gradient(ellipse at 20% 10%, #000 0%, transparent 65%);

    pointer-events: none;
}

body:has(.quick-actions-header) .per-day-title {
    font-weight: 800;
    letter-spacing: -.5px;
}

/* выбор срока: стеклянные «таблетки», активная — градиент */
body:has(.quick-actions-header) .per-day-period {
    color: #e5e7eb;

    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body:has(.quick-actions-header) .per-day-period:hover {
    transform: translateY(-2px);

    border-color: rgba(139, 92, 246, .6);
}

body:has(.quick-actions-header) .per-day-period.is-active {
    color: #fff;

    background: var(--neon-grad);
    border-color: transparent;

    box-shadow: 0 10px 30px rgba(139, 92, 246, .55);
}

body:has(.quick-actions-header) .per-day-period-badge {
    color: #052e16;

    background: #86efac;
    border-radius: 999px;
}

/* правая панель с результатом */
body:has(.quick-actions-header) .per-day-result {
    position: relative;
    z-index: 1;

    padding: 30px 30px 28px;

    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(139, 92, 246, .32);
    border-radius: 22px;

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, .35), 0 0 46px rgba(139, 92, 246, .14) inset;
}

/* цена дня — крупно и с градиентом */
body:has(.quick-actions-header) .per-day-price-value {
    background: linear-gradient(100deg, #ffffff 8%, #c4b5fd 52%, #f9a8d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    font-weight: 800;

    filter: drop-shadow(0 0 28px rgba(139, 92, 246, .4));
}

body:has(.quick-actions-header) .per-day-price-unit {
    color: #c4b5fd;
}

body:has(.quick-actions-header) .per-day-total {
    color: #e5e7eb;
}

/* шкала: чем длиннее срок, тем короче «цена дня» */
body:has(.quick-actions-header) .per-day-bar {
    height: 10px;

    background: rgba(255, 255, 255, .08);
    border-radius: 99px;

    overflow: hidden;
}

body:has(.quick-actions-header) .per-day-bar-fill {
    background: linear-gradient(90deg, #22c55e, #38bdf8 55%, #8b5cf6);
    border-radius: 99px;

    box-shadow: 0 0 18px rgba(56, 189, 248, .6);
}

body:has(.quick-actions-header) .per-day-bar-caption {
    color: var(--muted-foreground, #a1a1ad);
}

body:has(.quick-actions-header) .per-day-btn {
    color: #fff !important;

    background: var(--neon-grad) !important;
    background-size: 160% 100%;

    border: 0 !important;
    border-radius: 14px;

    font-weight: 700;

    box-shadow: 0 8px 30px rgba(139, 92, 246, .5);

    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}

body:has(.quick-actions-header) .per-day-btn:hover {
    background-position: 100% 0;

    transform: translateY(-2px);

    box-shadow: 0 12px 40px rgba(139, 92, 246, .7);
}

@media (max-width: 767.98px) {
    body:has(.quick-actions-header) .per-day-result {
        padding: 22px 20px;
    }
}


/* =========================================================
   «Как подключить»: две равные колонки, шаги в стеклянной карточке
   ========================================================= */

.hosting-solutions-section .row {
    align-items: stretch;
}

/* левая карточка: компактнее заголовок, градиентная кнопка */
body:has(.quick-actions-header) .hosting-solutions-section .ui-content {
    padding: 44px 44px 40px;

    border-radius: 28px;
}

body:has(.quick-actions-header) .hosting-solutions-section .ui-content-title {
    font-size: clamp(28px, 2.6vw, 44px);
    line-height: 1.15;
    letter-spacing: -1px;

    margin-bottom: 20px !important;
}

body:has(.quick-actions-header) .hosting-solutions-section .ui-content .btn {
    color: #fff !important;

    background: var(--neon-grad) !important;
    background-size: 160% 100%;

    border: 0 !important;
    border-radius: 14px;

    font-weight: 700;

    box-shadow: 0 8px 30px rgba(139, 92, 246, .5);

    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}

body:has(.quick-actions-header) .hosting-solutions-section .ui-content .btn:hover {
    background-position: 100% 0;

    transform: translateY(-2px);

    box-shadow: 0 12px 40px rgba(139, 92, 246, .7);
}

/* правая колонка: шаги в стеклянной карточке той же высоты */
.hosting-solutions-section .connection-steps {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;

    height: 100%;
    padding: 38px 40px;

    background: var(--neon-glass);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.hosting-solutions-section .connection-step {
    align-items: center;
}

.hosting-solutions-section .connection-step-number {
    color: #fff;

    background: rgba(139, 92, 246, .14);
    border: 1px solid rgba(139, 92, 246, .55);

    box-shadow: 0 0 22px rgba(139, 92, 246, .3);

    font-weight: 700;
}

.hosting-solutions-section .connection-step:last-child .connection-step-number {
    background: var(--neon-grad);
    border-color: transparent;

    box-shadow: 0 8px 28px rgba(139, 92, 246, .6);
}

/* линия между шагами — градиентом */
.hosting-solutions-section .connection-step:not(:last-child)::before {
    background: linear-gradient(to bottom, rgba(139, 92, 246, .7), rgba(139, 92, 246, .12));

    box-shadow: 0 0 10px rgba(139, 92, 246, .35);
}

@media (max-width: 991.98px) {
    body:has(.quick-actions-header) .hosting-solutions-section .ui-content {
        padding: 30px 26px;
    }

    .hosting-solutions-section .connection-steps {
        padding: 28px 24px;
    }
}


/* =========================================================
   Общий фон страницы: мягкие цветные пятна без резких границ
   ========================================================= */

.neon-bg {
    position: fixed;
    inset: 0;
    z-index: -1;

    overflow: hidden;

    pointer-events: none;
}

.neon-bg-blob {
    position: absolute;

    border-radius: 50%;

    will-change: transform;
}

.neon-bg-blob--1 {
    top: 6%;
    left: -22%;

    width: 70vw;
    height: 70vw;

    background: radial-gradient(circle, rgba(79, 57, 246, .22) 0%, transparent 65%);
}

.neon-bg-blob--2 {
    top: 36%;
    right: -26%;

    width: 74vw;
    height: 74vw;

    background: radial-gradient(circle, rgba(236, 72, 153, .14) 0%, transparent 65%);
}

.neon-bg-blob--3 {
    bottom: -20%;
    left: 8%;

    width: 64vw;
    height: 64vw;

    background: radial-gradient(circle, rgba(56, 189, 248, .10) 0%, transparent 65%);
}

/* секции прозрачные — фон общий, без швов */
body:has(.quick-actions-header) section.section-padding-large {
    background: transparent;
}

/* карточки «Поддерживаемые приложения» в общем стеклянном стиле */
body:has(.quick-actions-header) .client-platform {
    background: var(--neon-glass) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 24px;

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);

    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

body:has(.quick-actions-header) .client-platform:hover {
    transform: translateY(-5px);

    border-color: rgba(139, 92, 246, .5) !important;

    box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 0 46px rgba(139, 92, 246, .22);
}

body:has(.quick-actions-header) .client-download {
    background: rgba(255, 255, 255, .03);
    border-radius: 12px;

    transition: background .2s ease;
}

body:has(.quick-actions-header) .client-download:hover {
    background: rgba(139, 92, 246, .12);
}

body:has(.quick-actions-header) .platform-icon {
    color: #fff;

    background: rgba(139, 92, 246, .14);
    border: 1px solid rgba(139, 92, 246, .45);
    border-radius: 16px;

    box-shadow: 0 0 22px rgba(139, 92, 246, .25);
}


/* рамка левой карточки «Как подключить»: те же скругления и бегущий градиент, без обрезки */
body:has(.quick-actions-header) .hosting-solutions-section .ui-content {
    border: 0 !important;
}

body:has(.quick-actions-header) .hosting-solutions-section .ui-content::after {
    border-radius: inherit;

    background: conic-gradient(from var(--neon-angle), #4f39f6, #8b5cf6, #ec4899, #38bdf8, #4f39f6);

    animation: neon-border-spin 8s linear infinite;
}

/* без белого кольца у кнопок после клика/фокуса:
   в теме у .btn цвет outline при :focus/:active становится белым — гасим его */
body:has(.quick-actions-header) .btn,
body:has(.quick-actions-header) .btn:focus,
body:has(.quick-actions-header) .btn:active,
body:has(.quick-actions-header) .btn.active,
body:has(.quick-actions-header) .btn:not(:disabled):focus,
body:has(.quick-actions-header) .btn:not(:disabled):active {
    outline: 2px solid transparent !important;
    outline-color: transparent !important;
}

body:has(.quick-actions-header) .connect-help-btn:focus,
body:has(.quick-actions-header) .connect-help-btn:active,
body:has(.quick-actions-header) .quick-actions-secondary-btn:focus,
body:has(.quick-actions-header) .quick-actions-secondary-btn:active,
body:has(.quick-actions-header) .per-day-period:focus,
body:has(.quick-actions-header) .pricing-cta:focus {
    outline: none !important;
}

/* для управления с клавиатуры — аккуратное фиолетовое кольцо вместо белого */
body:has(.quick-actions-header) .btn:focus-visible,
body:has(.quick-actions-header) .connect-help-btn:focus-visible,
body:has(.quick-actions-header) .per-day-period:focus-visible {
    outline: 2px solid rgba(139, 92, 246, .85) !important;
    outline-offset: 3px;
}

/* отступы между ссылками на скачивание приложений */
body:has(.quick-actions-header) .client-list {
    gap: 12px;

    margin-top: 22px;
}

body:has(.quick-actions-header) .client-download {
    padding: 14px 16px;

    border: 1px solid rgba(255, 255, 255, .07);
}

body:has(.quick-actions-header) .client-platform .platform-header {
    margin-bottom: 4px;
}


/* =========================================================
   Отзывы: без чёрных «подложек» от теней карточек
   ========================================================= */

/* большая чёрная тень карточек обрезалась прокруткой ленты и давала тёмную полосу */
body:has(.quick-actions-header) .review-card,
body:has(.quick-actions-header) .review-card:hover {
    box-shadow: none !important;
}

body:has(.quick-actions-header) .review-card:hover {
    box-shadow: 0 0 34px rgba(139, 92, 246, .18) !important;
}

body:has(.quick-actions-header) .reviews-grid {
    padding: 14px 4px 18px;
}

/* =========================================================
   Финальный блок «Подключитесь к VladProxy VPN»
   ========================================================= */

body:has(.quick-actions-header) .service-bottom {
    position: relative;

    padding: 84px 40px;

    background:
        radial-gradient(760px 340px at 15% 0%, rgba(79, 57, 246, .32), transparent 65%),
        radial-gradient(680px 320px at 90% 100%, rgba(236, 72, 153, .22), transparent 65%),
        rgba(14, 14, 24, .78);

    border: 0;
    border-radius: 32px;

    overflow: hidden;

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow: 0 30px 90px rgba(79, 57, 246, .28), 0 0 80px rgba(236, 72, 153, .1);
}

/* бегущая градиентная рамка */
body:has(.quick-actions-header) .service-bottom::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    padding: 2px;

    border-radius: inherit;

    background: conic-gradient(from var(--neon-angle), #4f39f6, #8b5cf6, #ec4899, #38bdf8, #4f39f6);

    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;

    animation: neon-border-spin 8s linear infinite;
}

/* сетка точек */
body:has(.quick-actions-header) .service-bottom-content::before {
    content: "";

    position: absolute;
    inset: -84px -40px;
    z-index: -1;

    background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1.4px);
    background-size: 26px 26px;

    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 70%);

    pointer-events: none;
}

body:has(.quick-actions-header) .service-bottom-content {
    position: relative;
    z-index: 2;
}

body:has(.quick-actions-header) .service-bottom-title {
    font-size: clamp(34px, 4.2vw, 62px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;

    color: #fff;
}

body:has(.quick-actions-header) .service-bottom-title .gradient-text {
    background-size: 220% 100%;

    animation: quick-title-shimmer 7s linear infinite;
}

body:has(.quick-actions-header) .service-bottom-description {
    color: #c9c9d6;

    font-size: 18px;
}

.service-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 34px;
}

body:has(.quick-actions-header) .service-bottom .service-bottom-button {
    margin-top: 0;
    padding: 16px 30px;

    color: #fff !important;

    background: var(--neon-grad) !important;
    background-size: 160% 100%;

    border: 0 !important;
    border-radius: 16px;

    font-size: 16px;
    font-weight: 700;

    box-shadow: 0 10px 34px rgba(139, 92, 246, .55), 0 0 50px rgba(236, 72, 153, .22);

    transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
}

body:has(.quick-actions-header) .service-bottom .service-bottom-button:hover {
    background-position: 100% 0;

    transform: translateY(-2px);

    box-shadow: 0 14px 44px rgba(139, 92, 246, .75), 0 0 64px rgba(236, 72, 153, .38);
}

.service-bottom-ghost {
    display: inline-flex;
    align-items: center;

    padding: 16px 28px;

    color: #fff;

    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 16px;

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    font-size: 16px;
    font-weight: 600;
    text-decoration: none;

    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.service-bottom-ghost:hover {
    color: #fff;

    transform: translateY(-2px);

    background: rgba(139, 92, 246, .14);
    border-color: rgba(139, 92, 246, .6);
}

@media (max-width: 767.98px) {
    body:has(.quick-actions-header) .service-bottom {
        padding: 52px 22px;

        border-radius: 26px;
    }

    .service-bottom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .service-bottom-actions > a {
        justify-content: center;
    }
}


/* карта: подпись у правого края не должна выходить за экран и расширять страницу
   (из-за этого на телефоне закреплённая кнопка чата уезжала к краю) */
.servers-locations-section {
    overflow-x: clip;
}

.neon-map-label--jp {
    transform: translate(calc(-86% + var(--px, 0px)), calc(-165% + var(--py, 0px)));
}

@media (max-width: 767.98px) {
    .neon-map-label--jp {
        transform: translate(calc(-96% + var(--px, 0px)), calc(-160% + var(--py, 0px)));
    }
}


/* страница никогда не шире экрана (1–2 px от отрицательных отступов сетки расширяли область для закреплённых элементов) */
html:has(.quick-actions-header),
body:has(.quick-actions-header) {
    overflow-x: clip;
}

/* Keep the long hero heading within narrow screens. */
@media (max-width: 767.98px) {
    .quick-actions-header .quick-actions-content {
        width: 100%;
        min-width: 0;
    }

    .quick-actions-header .quick-actions-title {
        width: 100%;
        max-width: 100%;
        font-size: clamp(24px, 7vw, 44px);
        line-height: 1.18;
        text-wrap: balance;
    }

    .quick-actions-header .quick-actions-title .title-vpn,
    .quick-actions-header .quick-actions-title .title-brand {
        display: block;
        max-width: 100%;
        letter-spacing: -0.025em;
        overflow-wrap: anywhere;
    }
}
