/**
 * Карточки тарифов на главной — glass, SVG, анимации.
 * Подключать после theme-global.css
 */

.home-tariffs-section__title {
    font-family: "Syne", "Outfit", sans-serif !important;
    font-size: clamp(1.55rem, 3vw, 2rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
}

.home-tariffs-section__subtitle {
    margin: 0 auto 1.75rem !important;
    max-width: 42rem;
    text-align: center;
    color: #94a3b8 !important;
    font-size: 0.98rem;
    line-height: 1.5;
}

.home-tariffs-group__title {
    margin: 0 0 1rem !important;
    font-family: "Outfit", sans-serif;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #67e8f9 !important;
}

.home-tariff-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    background: linear-gradient(165deg, rgba(3, 16, 28, 0.75) 0%, rgba(2, 12, 22, 0.55) 100%) !important;
    border: 1px solid rgba(51, 187, 255, 0.22) !important;
    border-radius: 1.35rem !important;
    padding: 1.35rem 1.1rem 1.15rem !important;
    box-shadow: 0 12px 40px rgba(0, 30, 55, 0.28) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.home-tariff-card--anim {
    opacity: 0;
    transform: translateY(18px);
    animation: home-tariff-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--d, 0) * 0.08s + 0.05s);
}

@keyframes home-tariff-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-tariff-card::before {
    height: 3px !important;
    background: linear-gradient(90deg, #0088cc, #67e8f9, #33bbff, #0088cc) !important;
    background-size: 200% 100% !important;
    opacity: 0.85 !important;
    animation: home-tariff-shine 4.5s ease-in-out infinite;
}

@keyframes home-tariff-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.home-tariff-card:hover {
    transform: translateY(-6px) !important;
    border-color: rgba(103, 232, 249, 0.5) !important;
    box-shadow: 0 18px 48px rgba(51, 187, 255, 0.18) !important;
}

.home-tariff-card--popular {
    border-color: rgba(103, 232, 249, 0.45) !important;
    box-shadow: 0 14px 40px rgba(51, 187, 255, 0.22) !important;
}

.home-tariff-card--popular::before {
    height: 4px !important;
    opacity: 1 !important;
}

.home-tariff-card__badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #082f49;
    background: linear-gradient(115deg, #67e8f9, #33bbff);
    box-shadow: 0 4px 14px rgba(51, 187, 255, 0.35);
}

.home-tariff-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 0.9rem;
    color: #67e8f9;
    background: rgba(51, 187, 255, 0.12);
    border: 1px solid rgba(51, 187, 255, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-tariff-card__icon svg {
    fill: currentColor;
    width: 1.55rem;
    height: 1.55rem;
}

.home-tariff-card:hover .home-tariff-card__icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 0 20px rgba(51, 187, 255, 0.3);
}

.home-tariff-card--lte .home-tariff-card__icon {
    color: #38bdf8;
}

.home-tariff-card--combo .home-tariff-card__icon {
    color: #a5f3fc;
}

.home-tariff-card__head {
    border-bottom-color: rgba(51, 187, 255, 0.12) !important;
}

.home-tariff-card__name {
    font-family: "Outfit", sans-serif !important;
    font-size: 1.02rem !important;
    color: #f1f5f9 !important;
}

.home-tariff-card__price {
    font-family: "Syne", "Outfit", sans-serif !important;
    font-size: clamp(1.75rem, 4vw, 2.15rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    background: linear-gradient(115deg, #67e8f9 0%, #33bbff 50%, #0ea5e9 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

.home-tariff-card__period {
    color: #94a3b8 !important;
}

.home-tariff-card__per-day {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin: 0.6rem auto 0 !important;
    padding: 0.28rem 0.7rem !important;
    background: rgba(51, 187, 255, 0.14) !important;
    border: 1px solid rgba(51, 187, 255, 0.28);
    color: #67e8f9 !important;
    font-weight: 700 !important;
    text-align: center;
}

.home-tariff-card__features li {
    display: flex !important;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.38rem 0 !important;
    padding-left: 0 !important;
    font-size: 0.78rem !important;
    color: #cbd5e1 !important;
    border-bottom-color: rgba(51, 187, 255, 0.08) !important;
}

.home-tariff-card__features li::before {
    content: none !important;
    display: none !important;
}

.home-tariff-card__check {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    color: #22d3ee;
    filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.35));
}

.home-tariff-card__features li span {
    flex: 1;
}

.home-tariff-card__btn {
    min-height: 2.75rem;
    border-radius: 0.85rem !important;
    font-family: "Outfit", sans-serif;
    font-size: 0.88rem !important;
}

.home-tariff-card__btn--pay:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 22px rgba(51, 187, 255, 0.2) !important;
}

@media (prefers-reduced-motion: reduce) {
    .home-tariff-card--anim,
    .home-tariff-card::before {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
