*,
::after,
::before {
    box-sizing: border-box
}

body {
    margin: 0;
    padding: 0;
    font-family: Montserrat, sans-serif;
    background-color: #161B23;
    color: #c9c9c9;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Предотвращает горизонтальный скролл при анимации */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    width: 100%
}

a {
    text-decoration: none
}

header {
    text-align: center;
    padding: 40px 0 30px
}

h1 {
    font-family: 'Fira Mono', monospace;
    color: #fff;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px
}

h1 img {
    width: 48px;
    height: auto;
    display: block
}

.subtitle {
    color: #828282;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto
}

.qr-block {
    background: linear-gradient(135deg, #1A222C 0, #242424 100%);
    border: 1px solid #2e2e2e;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    position: relative;
    overflow: hidden
}

.qr-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 139, 230, .05) 0, rgba(0, 0, 0, 0) 70%);
    pointer-events: none
}

.qr-content {
    flex: 1;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.qr-title {
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2
}

.qr-description {
    font-size: 1rem;
    color: #c9c9c9;
    margin-bottom: 30px;
    max-width: 500px
}

.qr-badge {
    display: inline-block;
    background-color: rgba(34, 139, 230, .15);
    color: #4dabf7;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 15px;
    border: 1px solid rgba(34, 139, 230, .3)
}

.qr-btn {
    display: none;
    align-items: center;
    gap: 12px;
    background-color: #228be6;
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all .2s;
    box-shadow: 0 4px 15px rgba(34, 139, 230, .3);
    text-decoration: none
}

.qr-btn:hover {
    background-color: #1c7ed6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 230, .5)
}

.qr-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff
}

.qr-code-wrapper {
    background: #fff;
    padding: 10px;
    border-radius: 10%;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
    text-align: center;
    display: block
}

.qr-code-wrapper img {
    width: 200px;
    height: 200px;
    display: block
}

.qr-subtext {
    color: #161B23;
    font-size: .75rem;
    font-weight: 600;
    margin-top: 8px;
    display: block
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    align-items: stretch
}

.card {
    background-color: #242424;
    border: 1px solid #2e2e2e;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Улучшена плавность при наведении */
    transition: transform .3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow .3s ease, border-color .3s;
    height: 100%
}

.card:hover {
    transform: translateY(-7px);
    border-color: #228be6;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
    z-index: 2
}

.card.popular {
    background-color: #1A222C;
    border-color: #228be6;
    box-shadow: 0 4px 20px rgba(34, 139, 230, .15)
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px
}

.star-icon {
    width: 24px;
    height: 24px;
    fill: #ffd43b;
    filter: drop-shadow(0 0 5px rgba(255, 212, 59, .5))
}

.plan-price {
    font-family: 'Fira Mono', monospace;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 500
}

.plan-price span {
    font-size: 1rem;
    color: #828282
}

ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px
}

li {
    display: flex;
    align-items: flex-start;
    font-size: .95rem;
    line-height: 1.4
}

li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    color: #228be6
}

.highlight-text {
    color: #74c0fc;
    font-weight: 600
}

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    background-color: #228be6;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .1s;
    margin-top: auto;
    box-sizing: border-box
}

.btn:hover {
    background-color: #1c7ed6
}

.btn:active {
    transform: scale(.98)
}

.btn.outline {
    background-color: transparent;
    border: 1px solid #424242;
    color: #c9c9c9;
    padding: 16px
}

.btn.outline:hover {
    border-color: #fff;
    color: #fff
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: -20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.payment-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #242424;
    border: 1px solid #2e2e2e;
    padding: 10px 20px;
    border-radius: 50px;
    color: #c9c9c9;
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color .3s, transform .2s;
    cursor: default;
}

.payment-tag:hover {
    border-color: #228be6;
    transform: translateY(-2px);
}

.payment-tag svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.channel-block {
    background-color: #1A222C;
    border: 2px dashed #424242;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    transition: border-color .3s
}

.channel-block:hover {
    border-color: #74c0fc
}

.channel-icon-wrapper {
    background-color: rgba(255, 255, 255, .05);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.channel-icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: #74c0fc
}

.channel-content {
    flex-grow: 1
}

.channel-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px
}

.channel-desc {
    color: #828282;
    font-size: .95rem;
    margin: 0
}

.channel-btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #74c0fc;
    color: #74c0fc;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap
}

.channel-btn:hover {
    background-color: #74c0fc;
    color: #161B23
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #2e2e2e;
    font-size: .85rem;
    color: #696969
}

.support-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #228be6;
    color: #fff;
    padding: 12px 20px 12px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(34, 139, 230, .4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    z-index: 1000;
    transition: transform .2s, background-color .2s
}

.support-btn:hover {
    background-color: #1c7ed6;
    transform: translateY(-2px)
}

.support-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff
}

/* --- АНИМАЦИИ (НОВОЕ) --- */

/* Ключевые кадры: элемент едет снизу и проявляется */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Базовый класс для анимации */
.fade-in-up {
    opacity: 0;
    /* Скрыто до начала анимации */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    /* Плавная кривая скорости */
}

/* Задержки для каскадного эффекта */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* Медиа-запросы */

@media (min-width:601px) and (max-width:1050px) {
    .pricing-grid {
        grid-template-columns: 1fr 1fr
    }

    .card.popular {
        grid-column: span 2;
        order: -1
    }
}

@media (max-width:768px) {
    h1 {
        font-size: 2rem
    }

    .pricing-grid {
        gap: 15px
    }

    .card {
        padding: 25px 20px
    }

    .support-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
        font-size: .9rem
    }

    .qr-block {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px
    }

    .qr-content {
        align-items: center
    }

    .qr-code-wrapper {
        display: none
    }

    .qr-btn {
        display: inline-flex;
        width: 100%;
        justify-content: center
    }

    .channel-block {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px
    }

    .channel-btn {
        width: 100%;
        text-align: center
    }
}

/* --- Стили для Премиум тарифа --- */

/* Золотая обводка и свечение */
.card.premium {
    border-color: #ffd43b;
    background: linear-gradient(145deg, #242424 0%, #2a271d 100%);
    /* Легкий золотистый оттенок фона */
    box-shadow: 0 4px 25px rgba(255, 212, 59, 0.15);
    /* Золотое свечение */
    z-index: 2;
    /* Чтобы тень была поверх соседних карточек */
}

/* Усиление эффекта при наведении */
.card.premium:hover {
    border-color: #ffe066;
    transform: translateY(-9px);
    /* Чуть выше остальных */
    box-shadow: 0 14px 40px rgba(255, 212, 59, 0.3);
}

/* Иконка короны */
.crown-icon {
    width: 24px;
    height: 24px;
    fill: #ffd43b;
    margin-left: 8px;
    filter: drop-shadow(0 0 5px rgba(255, 212, 59, 0.6));
    animation: float 3s ease-in-out infinite;
    /* Легкая анимация парения (опционально) */
}

/* Стилизация кнопки под золото */
.card.premium .btn.outline {
    border-color: #ffd43b;
    color: #ffd43b;
    font-weight: 700;
}

.card.premium .btn.outline:hover {
    background-color: #ffd43b;
    color: #161B23;
    /* Темный текст на золотом фоне */
    border-color: #ffd43b;
    box-shadow: 0 0 15px rgba(255, 212, 59, 0.5);
}

/* Изменяем цвет галочек в списке на золотой */
.card.premium li svg {
    color: #ffd43b;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}