/* Pricing */
.pricing {
    background: linear-gradient(180deg, rgba(12, 12, 29, 1), rgba(18, 18, 45, 1));
}

.g-4,
.gy-4 {
    --bs-gutter-y: 3.5rem !important;
}


.pricing-card {
    background: var(--card);
    border-radius: 28px;
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: visible;
}

.pricing-card.popular {
    border-color: rgba(255, 0, 200, 0.5);
    transform: scale(1.00);
    border-width: 2px;
}

.pricing-card.popular::before {
    content: 'Популярный';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: #c811a7;
    color: white;
    padding: 6px 22px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;

}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.4);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-sale-sticker {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.sale-sticker-box {
    position: absolute;
    top: -140px;
    right: -40px;
    width: 110px;
    height: 210px;
    transform-origin: 50% 75%;
    transform: translate(-75px, 65px) rotate(20deg);
    transition: transform 0.5s ease;
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.35));

}

.pricing-card:hover .sale-sticker-box {
    transform: translate(-75px, 75px) rotate(20deg);
}

.sale-sticker {
    width: 96px;
    height: 96px;
    position: absolute;
    overflow: hidden;
    transition: 0.75s ease all;
}

.sale-sticker span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    transition: 0.75s ease all;
}

.sale-sticker-front {
    z-index: 2;
}

.sale-sticker-front span {
    background: #f4d802;
    color: #130505;
    transform: translate(0, 100%);
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
    gap: 4px;
    padding: 12px;
}

.sale-sticker-front span strong {
    font-size: 1em;
}

.sale-sticker-front span small {
    font-size: 0.5em;
    letter-spacing: 0.1em;
}

.sale-sticker-back {
    z-index: 1;
}

.sale-sticker-back span {
    background: linear-gradient(180deg, rgb(128 128 128) 0%, rgb(212 212 212) 100%);
}

.pricing-card:hover .sale-sticker-front {
    transform: translate(0, 100%);
}

.pricing-card:hover .sale-sticker-front span {
    transform: translate(0, 0);
}

.pricing-card:hover .sale-sticker-back {
    transform: translate(0, 100%);
}

.pricing-card:hover .sale-sticker-back span {
    transform: translate(0, 100%);
}


.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 0.9rem;
}

.pricing-features li {
    color: rgba(236, 239, 244, 0.8);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    padding: 0;
    cursor: default;
    /* чтобы не было «пальца» */
    transition: color 0.2s ease;
    /* плавный ховер */
}

.pricing-features li:hover {
    color: var(--secondary);
    /* цвет из твоей переменной */
}

.pricing-features li i {
    color: var(--secondary);
    margin-right: 10px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.pricing-price {
    font-size: 2.7rem;
    font-weight: 800;
    color: #b8ec19;
    margin-bottom: 0.4rem;

    display: flex;
    justify-content: center;
    /* центрируем по горизонтали */
    align-items: baseline;
    /* выравниваем по нижней линии текста */
    gap: 8px;
    /* расстояние между ценами */
    text-align: center;
}

.pricing-card .pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    /* расстояние между старой и новой ценой */
}

/* старая, зачёркнутая, маленькая цена */
.pricing-card .pricing-price-old {
    text-decoration: line-through;
    font-size: 0.4em;
    color: #9eb165;
    opacity: 0.6;
    /* чуть бледнее */
}

/* новая цена – если нужно, можно отдельно настроить */
.pricing-card .pricing-price-new {
    font-size: 1em;
    /* можно убрать, если уже настроено где-то ещё */
    font-weight: 800;
}

.pricing-period {
    color: var(--muted-foreground);
    font-size: 1.4rem;
    margin-bottom: -0.5rem;
    font-weight: 800;
    color: #ebe323;
}

.pricing-period_desc {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
    font-weight: 600;
}

.hero-container {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    contain: paint;
    isolation: isolate;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-backdrop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.scale-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%) scale(1);
    transform-origin: center center;
}

.wrapper {
    position: relative;
    width: 2560px;
    height: 1440px;
}

.hero-container.mode-mobile .wrapper {
    width: 1200px;
    height: 1800px;
}

.background,
.hero {
    position: absolute;
    top: 0;
    left: 0;
}

.background {
    width: 2560px;
    height: 1440px;
    z-index: 1;
    transition: opacity 1s ease-in-out;
    will-change: opacity;
}

.hero-container.mode-mobile .background {
    width: 1200px;
    height: 1800px;
}

.hero {
    width: 1282px;
    height: 769px;
    left: 639px;
    top: 335px;
    z-index: 2;
    transform: translate(0px, 0px);
}

.hero-container.mode-mobile .hero {
    width: 846px;
    height: 508px;
}

.hero-screen-container {
    position: absolute;
    width: 1282px;
    height: 769px;
    left: 684px;
    top: 203px;
    transform: translate(0px, 0px);
    overflow: hidden;
    cursor: grab;
    z-index: 3;
}

.hero-container.mode-mobile .hero-screen-container {
    width: 846px;
    height: 505px;
    left: 186px;
    top: 583px;
}

.hero-screen-container:active {
    cursor: grabbing;
}

.hero-screen-container .hero {
    position: absolute;
    left: 0;
    top: 0;
    transition: transform 0.3s ease;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    width: 2560px;
    height: 1440px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 100px;
    pointer-events: none;
    z-index: 5;
}

.hero-container.mode-mobile .hero-overlay {
    width: 1200px;
    height: 1800px;
    padding: 160px 40px 140px;
}

.theme-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    pointer-events: auto;
}

.theme-btn {
    background: rgb(0 0 0 / 29%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 46px;
    padding: 12px 28px;
    color: #fff;
    font-weight: 6400;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    backdrop-filter: blur(18px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.theme-btn.active {
    background: var(--gradient-primary);
    border-color: rgb(255 255 255);
}

.hero-content {
    text-align: center;
    color: #fff;
    pointer-events: auto;
    max-width: 80%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 3.0rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    font-size: 1.6rem;
    background: rgb(22 8 21 / 30%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 38px;
    padding: 15px 34px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}


.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-screen-arrow {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.9;
    animation: hero-arrow-sway 1.3s ease-in-out infinite;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 5;
}

.hero-screen-arrow.hidden {
    opacity: 0;
    visibility: hidden;
}

.hero-screen-arrow img {
    width: 100%;
    height: auto;
}

@keyframes hero-arrow-sway {
    0% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(calc(-50% + 22px), 0);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

@media (max-width: 1200px) {
    .hero-content {
        max-width: 90%;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 2.4rem;
        line-height: 3.0rem;
    }
}

@media (max-width: 768px) {
    .hero-overlay {
        padding: 160px 24px 120px;
    }

    .theme-menu {
        gap: 16px;
    }

    .theme-btn {
        font-size: 2.3rem;
        padding: 16px 34px;
        border-radius: 34px;
    }

    .hero-content {
        max-width: 95%;
    }

    .hero-title {
        font-size: 4.1rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 2.3rem;
        line-height: 1.2;
        margin-bottom: 2.4rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* ← центрирует все кнопки */
        gap: 15px;
        /* по желанию */
    }

    .hero-btn {
        width: auto;
        /* ← кнопки НЕ растягиваются */
        text-align: center;
        font-size: 2.3rem;
        padding: 18px 46px;
        display: inline-block;
    }

    .navbar-brand img {
        height: 28px;
    }
}

@media (max-width: 480px) {
    .theme-btn {
        flex: 1 1 45%;
        text-align: center;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .navbar-brand img {
        height: 28px;
    }
}