body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #0f1117;
    color: #fff;
}

.prices-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.title {
    text-align: center;
    font-size: 34px;
    margin-bottom: 30px;
    font-weight: 700;
}

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Карточки */
.tariff-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: 0.25s;
}

.tariff-card:hover {
    transform: translateY(-5px);
    border-color: rgba(76, 141, 255, 0.5);
}

.tariff-name {
    font-size: 22px;
    margin-bottom: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 15px;
}

.price {
    font-size: 26px;
    margin: 8px 0;
    font-weight: 700;
}

.sale-label {
    font-size: 13px;
    color: #4cafef;
    margin-bottom: 12px;
}

/* Популярный */
.popular {
    border: 1px solid #4c8dff;
}

/* Тестовый */
.test {
    border: 1px solid #e14cff;
}
.test-green {
    background: #25c77a;
}
.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4c8dff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* Самый выгодный */
.best {
    border: 1px solid #25c77a;
}

.badge-green {
    background: #25c77a;
}

/* Информация */
.tariff-info {
    font-size: 15px;
    margin: 5px 0;
}

/* Кнопка купить */
.buy-btn {
    display: block;
    margin: 15px auto 0;
    text-align: center;
    padding: 10px 0;
    width: 80%;
    background: #4c8dff;
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.buy-btn:hover {
    background: #3a78e0;
}

/* Инфоблок */
.info-block {
    margin-top: 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
}
.agreement {
    display: block;
    text-align: center;
    margin-top: 30px;
    text-decoration: none;
    color: #4c8dff;
    font-size: 18px;
}

.bot-btn-wrapper {
    text-align: center;
    margin-top: 20px;
}

.bot-btn {
    display: inline-block; /* ширина под содержимое */
    font-size: 20px;
    font-weight: 600;
    background: #4C8DFF;
    color: #fff;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.bot-btn:hover {
    background: #3577E1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bot-btn:active {
    transform: translateY(1px);
}

.warning {
    display: inline-block;
    background: #feb9b9; /* светло-красный фон */
    color: #d32f2f;       /* красный текст */
    padding: 1px 10px;
    border-radius: 5px;
    font-weight: bold;
}


footer {
    background: #0b0c10;
    padding: 60px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d0d0d0;
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #4c8dff;
}

.footer-copy {
    color: #888;
    font-size: 15px;
    opacity: 0.8;
}

/* Адаптивная сетка */
@media (max-width: 1100px) {
    .tariff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 700px) {
    .tariff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tariff-card {
        padding: 18px;
    }

    .tariff-card .price {
        font-size: 1.6rem;
    }

    .tariff-card .discount {
        font-size: 0.95rem;
    }

    .tariff-card.popular::before {
        font-size: 0.8rem;
        top: 10px;
        right: 10px;
        padding: 4px 8px;
    }

    .tariff-card.best::before {
        font-size: 0.8rem;
        top: 10px;
        right: 10px;
        padding: 4px 8px;
    }

    .buy-btn {
        font-size: 1rem;
        padding: 10px 0;
    }
}
