/* Карточки тарифов — как в ЛК (dashboard → Купить VPN) */
.home-page-tariffs.vpn-buy-tariffs-layout {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 0.25rem;
}

.home-page-tariffs--after-utp {
    margin-top: 1.25rem;
}

.hero-cta-instructions-row > .home-page-tariffs {
    width: 100%;
    max-width: 58rem;
}

@media (min-width: 1024px) {
    .hero-cta-instructions-row > .home-page-tariffs {
        max-width: 72rem;
    }
}

.home-tariffs-section-header {
    text-align: center;
    margin: 0 0 1rem;
    padding: 0 0.5rem;
}

.home-tariffs-section-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.home-tariffs-section-sub {
    margin: 0 auto;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #64748b;
}

.home-page-tariffs--featured {
    margin-top: 1.25rem;
    padding: 1.25rem 0.5rem 0.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 247, 255, 0.98) 100%);
    border: 1px solid rgba(0, 136, 204, 0.16);
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.1);
}

.home-tariffs-featured-title {
    font-size: 1.5rem;
}

.home-tariffs-featured-sub {
    max-width: 36rem;
}

.tariffs-grid--featured {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 52rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tariffs-grid--featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.vpn-buy-tariffs-layout .tariff-popular-badge {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #0088cc 0%, #0056b3 100%);
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
    white-space: nowrap;
}

.vpn-buy-tariffs-layout .tariff-card--featured {
    padding: 1.35rem 1.15rem 1.15rem;
    border: 2px solid rgba(0, 136, 204, 0.22);
    box-shadow:
        0 12px 40px rgba(0, 136, 204, 0.14),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.vpn-buy-tariffs-layout .tariff-card--featured::before {
    opacity: 1;
    height: 6px;
    background: linear-gradient(90deg, #0088cc 0%, #667eea 50%, #764ba2 100%);
}

.vpn-buy-tariffs-layout .tariff-card--featured.tariff-card--lte,
.vpn-buy-tariffs-layout .tariff-card--featured.tariff-card--combo {
    border-color: rgba(0, 123, 255, 0.35);
}

.vpn-buy-tariffs-layout .tariff-card--featured.tariff-card--lte::before,
.vpn-buy-tariffs-layout .tariff-card--featured.tariff-card--combo::before {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

.vpn-buy-tariffs-layout .tariff-card--featured .tariff-price {
    font-size: 2rem;
}

.vpn-buy-tariffs-layout .tariff-card--featured .tariff-name {
    font-size: 1.125rem;
}

.vpn-buy-tariffs-layout .tariff-card--popular {
    margin-top: 0.35rem;
}

:root[data-theme='dark'] .home-page-tariffs--featured {
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

:root[data-theme='dark'] .home-tariffs-featured-title,
:root[data-theme='dark'] .home-tariffs-featured-sub {
    color: #e2e8f0;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-card--featured {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.home-page-tariffs--lte {
    margin-top: 1.25rem;
    padding-top: 0.5rem;
}

.home-tariffs-lte-header {
    text-align: center;
    margin: 0 0 1rem;
    padding: 0 0.5rem;
}

.home-tariffs-lte-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.home-tariffs-lte-sub {
    margin: 0 auto;
    max-width: 42rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #64748b;
}

.home-tariffs-lte-note {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.home-tariffs-lte-note a {
    color: #007bff;
    text-decoration: underline;
}

.vpn-buy-tariffs-layout .tariff-card--lte::before,
.vpn-buy-tariffs-layout .tariff-card--combo::before {
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
}

.vpn-buy-tariffs-layout .tariff-card--lte:hover,
.vpn-buy-tariffs-layout .tariff-card--combo:hover {
    border-color: #007bff;
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.22);
}

.vpn-buy-tariffs-layout .tariff-btn--lte,
.vpn-buy-tariffs-layout .tariff-btn--lte-login {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.vpn-buy-tariffs-layout .tariff-btn--lte-login {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

@media (min-width: 1200px) {
    .vpn-buy-tariffs-layout .tariffs-grid--lte {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vpn-buy-tariffs-layout .dashboard-tariffs-block-title {
    grid-column: 1 / -1;
    margin: 0.5rem 0 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
}

.vpn-buy-tariffs-layout .dashboard-tariffs-block-sub {
    grid-column: 1 / -1;
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.vpn-buy-tariffs-layout .vpn-tariffs-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 14px 10px 18px;
}

.vpn-buy-tariffs-layout .tariffs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 0;
    overflow: visible;
}

@media (min-width: 1200px) {
    .vpn-buy-tariffs-layout .tariffs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .vpn-buy-tariffs-layout .tariffs-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .vpn-buy-tariffs-layout .tariffs-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .vpn-buy-tariffs-layout .tariff-card {
        padding: 12px 12px;
        border-radius: 14px;
    }
    .vpn-buy-tariffs-layout .tariff-icon {
        margin-bottom: 8px;
    }
    .vpn-buy-tariffs-layout .tariff-name {
        font-size: 15px;
        margin-bottom: 6px;
    }
    .vpn-buy-tariffs-layout .tariff-price {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .vpn-buy-tariffs-layout .tariff-period {
        font-size: 13px;
        margin-bottom: 6px;
    }
    .vpn-buy-tariffs-layout .price-per-day {
        font-size: 12px;
        margin-bottom: 8px;
        padding: 4px 10px;
    }
    .vpn-buy-tariffs-layout .tariff-features {
        margin: 8px 0;
    }
    .vpn-buy-tariffs-layout .tariff-features li {
        font-size: 13px;
        padding: 5px 0;
        line-height: 1.3;
        color: #334155;
        -webkit-text-fill-color: currentColor;
    }
    .vpn-buy-tariffs-layout .tariff-features li::before {
        width: 16px;
        height: 16px;
        font-size: 11px;
        margin-right: 8px;
    }
    .vpn-buy-tariffs-layout .tariff-btn {
        padding: 9px 10px;
        font-size: 12px;
        border-radius: 10px;
    }
}

.vpn-buy-tariffs-layout .tariff-card {
    background: white;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    min-height: 0;
    -webkit-text-fill-color: currentColor;
}

.vpn-buy-tariffs-layout .tariff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vpn-buy-tariffs-layout .tariff-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
}

.vpn-buy-tariffs-layout .tariff-card:hover::before {
    opacity: 1;
}

.vpn-buy-tariffs-layout .tariff-icon {
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

.vpn-buy-tariffs-layout .tariff-icon .vp-icon-use,
.vpn-buy-tariffs-layout .tariff-icon .tariff-icon-svg {
    display: block;
}

.vpn-buy-tariffs-layout .tariff-card:hover .tariff-icon {
    transform: scale(1.1) rotate(5deg);
}

.vpn-buy-tariffs-layout .tariff-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.vpn-buy-tariffs-layout .tariff-name .tariff-name-split {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.2;
}

.vpn-buy-tariffs-layout .tariff-name .tariff-name-split-gb {
    white-space: nowrap;
}

.vpn-buy-tariffs-layout .tariff-price {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.2;
}

.vpn-buy-tariffs-layout .tariff-period {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 500;
}

.vpn-buy-tariffs-layout .price-per-day {
    font-size: 12px;
    color: #10b981;
    font-weight: 700;
    background: #d1fae5;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}

.vpn-buy-tariffs-layout .tariff-features {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    flex-grow: 1;
    text-align: left;
}

.vpn-buy-tariffs-layout .tariff-features li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #334155;
    -webkit-text-fill-color: currentColor;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    line-height: 1.3;
}

.vpn-buy-tariffs-layout .tariff-features li:hover {
    color: #667eea;
}

.vpn-buy-tariffs-layout .tariff-features li:last-child {
    border-bottom: none;
}

.vpn-buy-tariffs-layout .tariff-features li::before {
    content: "";
    margin-right: 8px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d1fae5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
    border-radius: 50%;
}

.vpn-buy-tariffs-layout .tariff-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.vpn-buy-tariffs-layout .tariff-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.vpn-buy-tariffs-layout .tariff-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.vpn-buy-tariffs-layout .tariff-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Тёмная тема на главной (как в ЛК) */
:root[data-theme='dark'] .home-page-tariffs .tariff-card {
    background: #111827 !important;
    color: #e5e7eb !important;
    border-color: #334155 !important;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-name,
:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-name .tariff-name-split {
    color: #f1f5f9 !important;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-period {
    color: #94a3b8 !important;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-price {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #a5b4fc !important;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .price-per-day {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #6ee7b7 !important;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-features li {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: currentColor !important;
    border-bottom-color: #334155 !important;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-features li:hover {
    color: #a5b4fc !important;
}

:root[data-theme='dark'] .vpn-buy-tariffs-layout .tariff-features li::before {
    background: rgba(16, 185, 129, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334d399'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 12px 12px no-repeat !important;
}

.home-page-tariffs--proxy {
    margin-top: 1.25rem;
    padding-top: 0.5rem;
}

.vpn-buy-tariffs-layout .tariff-card--proxy::before {
    background: linear-gradient(90deg, #37aee2 0%, #0088cc 100%);
}

.vpn-buy-tariffs-layout .tariff-card--proxy:hover {
    border-color: #37aee2;
    box-shadow: 0 20px 60px rgba(55, 174, 226, 0.22);
}

.vpn-buy-tariffs-layout .tariff-btn--proxy {
    background: linear-gradient(135deg, #37aee2, #0088cc);
    box-shadow: 0 4px 15px rgba(55, 174, 226, 0.4);
}

.vpn-buy-tariffs-layout .tariff-btn--proxy:hover:not(:disabled) {
    background: linear-gradient(135deg, #0088cc, #37aee2);
    box-shadow: 0 8px 25px rgba(55, 174, 226, 0.5);
}

.vpn-buy-tariffs-layout .tariff-btn--proxy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.js-proxy-tariffs-section .proxy-country-picker {
    position: relative;
    margin-bottom: 12px;
    text-align: left;
}

.js-proxy-tariffs-section .proxy-country-picker__field-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 6px 2px;
}

.js-proxy-tariffs-section .proxy-country-picker__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
}

.js-proxy-tariffs-section .proxy-country-picker__toggle-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.js-proxy-tariffs-section .proxy-country-picker__flag-img {
    flex-shrink: 0;
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.js-proxy-tariffs-section .proxy-country-picker__chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.js-proxy-tariffs-section .proxy-country-picker--open .proxy-country-picker__chevron {
    transform: rotate(180deg);
}

.js-proxy-tariffs-section .proxy-country-picker__dropdown {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 60;
    margin-top: 4px;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.js-proxy-tariffs-section .proxy-country-picker__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #1e293b;
}

.js-proxy-tariffs-section .proxy-country-picker__option:last-child {
    border-bottom: none;
}

.js-proxy-tariffs-section .proxy-country-picker__option:hover,
.js-proxy-tariffs-section .proxy-country-picker__option--selected {
    background: #eff6ff;
}

.js-proxy-tariffs-section .proxy-country-picker__load,
.js-proxy-tariffs-section .proxy-country-picker__err {
    padding: 10px 12px;
    font-size: 13px;
    text-align: center;
}

.js-proxy-tariffs-section .proxy-country-picker__err {
    color: #b91c1c;
}

:root[data-theme='dark'] .js-proxy-tariffs-section .proxy-country-picker__toggle {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

:root[data-theme='dark'] .js-proxy-tariffs-section .proxy-country-picker__dropdown {
    background: #0f172a;
    border-color: #334155;
}

:root[data-theme='dark'] .js-proxy-tariffs-section .proxy-country-picker__option {
    color: #e2e8f0;
    border-bottom-color: #1e293b;
}
