/*<!-- CSS для страницы тарифа -->*/

     /* ===== PLAN DETAIL PAGE STYLES ===== */
 .plan-detail-page {
     background: #f8fafc;
     overflow-x: hidden;
 }

/* Hero Section */
.plan-hero {
    position: relative;
    background: linear-gradient(135deg, #2563eb, #87e597);
    padding: 50px 0 70px;
    color: white;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: float 25s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, -50px); }
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-shape svg {
    width: 100%;
    height: 100px;
    fill: #f8fafc;
}

.plan-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.plan-badge {
    margin-bottom: 20px;
}

.sale-badge {
    background: linear-gradient(135deg, #f43f5e, #f97316);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.plan-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.plan-price-hero {
    margin-bottom: 25px;
}

.plan-price-hero .old-price {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    margin-right: 15px;
}

.plan-price-hero .current-price {
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.plan-price-hero .price-period {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-feature i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-feature span {
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-actions .btn {
    padding: 15px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-actions .btn-primary {
    background: white;
    color: #2563eb;
    border: none;
}

.hero-actions .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-outline-light {
    border: 2px solid white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-actions .btn-outline-light:hover {
    background: white;
    color: #2563eb;
}

/* Mobile header */
.mobile-plan-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mobile-title {
    color: #1e3a8a;
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.mobile-price .old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 1.5rem;
    margin-right: 12px;
}

.mobile-price .current-price {
    color: #2563eb;
    font-size: 2.5rem;
    font-weight: 800;
}

.mobile-price .period {
    color: #64748b;
    font-size: 1.1rem;
    margin-left: 5px;
}

/* Description Card - полная стилизация под общий дизайн */
.description-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.description-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #22d3ee, #87e597);
}

.description-content {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.8;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4 {
    color: #1e3a8a;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 700;
}

.description-content h1 { font-size: 2.2rem; }
.description-content h2 { font-size: 1.8rem; }
.description-content h3 { font-size: 1.5rem; }
.description-content h4 { font-size: 1.3rem; }

.description-content p {
    margin-bottom: 20px;
    color: #475569;
}

.description-content ul,
.description-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.description-content li {
    margin-bottom: 8px;
    color: #475569;
}

.description-content strong {
    color: #2563eb;
    font-weight: 600;
}

.description-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px dashed #2563eb;
}

.description-content a:hover {
    color: #1e3a8a;
    border-bottom-style: solid;
}

.description-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #2563eb;
    font-size: 0.95em;
}

.description-content pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.description-content blockquote {
    border-left: 4px solid #22d3ee;
    padding-left: 20px;
    margin: 20px 0;
    color: #475569;
    font-style: italic;
}

.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.description-content th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #1e3a8a;
}

.description-content td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

/* Quick Facts */
.quick-facts {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.quick-facts h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e3a8a;
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.quick-facts h3 i {
    color: #22d3ee;
    font-size: 1.6rem;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.fact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.fact-item i {
    font-size: 2rem;
    color: #2563eb;
    background: white;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fact-item strong {
    display: block;
    color: #1e3a8a;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.fact-item span {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

/* Endpoints Section */
.endpoints-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.endpoints-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1e3a8a;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.endpoints-section h2 i {
    color: #22d3ee;
    font-size: 2rem;
}

.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.endpoint-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.endpoint-chip i {
    color: #22d3ee;
    font-size: 1.1rem;
}

.endpoint-chip:hover {
    background: linear-gradient(135deg, #2563eb10, #87e59710);
    border-color: #2563eb;
    transform: translateX(5px);
}

/* Order Box */
.order-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: sticky;
    top: 100px;
    border: 2px solid transparent;
    background: linear-gradient(to right, #fff, #fff) padding-box,
    linear-gradient(135deg, #2563eb, #22d3ee) border-box;
}

.order-header {
    background: linear-gradient(135deg, #2563eb10, #87e59710);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.order-header h3 {
    color: #1e3a8a;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.order-header p {
    color: #64748b;
    margin: 0;
    font-size: 1.1rem;
}

.order-price {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.order-price .old-price {
    font-size: 1.5rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 12px;
}

.order-price .current-price {
    font-size: 3.2rem;
    font-weight: 800;
    color: #2563eb;
}

.order-price .period {
    color: #64748b;
    font-size: 1.1rem;
    margin-left: 8px;
}

.order-form {
    padding: 30px;
}

.recurring-group {
    margin-bottom: 25px;
}

.recurring-group label {
    color: #1e3a8a;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 1.1rem;
}

.recurring-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #1e3a8a;
    font-weight: 500;
    font-size: 1rem;
}

.recurring-group select:focus {
    border-color: #2563eb;
    outline: none;
}

/* Features Summary - динамическое */
.features-summary {
    margin-bottom: 25px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 20px;
}

.features-summary h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1e3a8a;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.features-summary h4 i {
    color: #22d3ee;
    font-size: 1.3rem;
}

.features-list-dynamic {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list-dynamic li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    color: #475569;
    font-size: 1.1rem;
    border-bottom: 1px solid #e2e8f0;
}

.features-list-dynamic li:last-child {
    border-bottom: none;
}

.features-list-dynamic li i {
    color: #22d3ee;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-dynamic-name {
    font-weight: 600;
    color: #1e3a8a;
    min-width: 120px;
}

.feature-dynamic-value {
    color: #2563eb;
    font-weight: 600;
    background: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 1rem;
    margin-left: auto;
}

.order-actions {
    margin-top: 25px;
}

.order-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
    color: white;
    border: none;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.order-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.secure-badge {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 15px;
}

.secure-badge i {
    color: #22d3ee;
    margin-right: 5px;
    font-size: 1.1rem;
}

.payment-methods {
    text-align: center;
    color: #64748b;
    font-size: 1rem;
}

.payment-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 10px;
}

.payment-icons i {
    font-size: 2rem;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: #2563eb;
    transform: scale(1.1);
}

/* Related Plans */
.related-plans {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.related-plans h2 {
    color: #1e3a8a;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
}

.plan-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.plan-card-header {
    background: linear-gradient(135deg, #2563eb10, #87e59710);
    padding: 25px;
    text-align: center;
}

.plan-card-header h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.plan-card-price .old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 1.1rem;
    margin-right: 10px;
}

.plan-card-price .current-price {
    color: #2563eb;
    font-size: 2rem;
    font-weight: 800;
}

.plan-card-body {
    padding: 25px;
}

.plan-card-body p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1rem;
}

.plan-card-body .btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #2563eb;
    color: #2563eb;
    background: transparent;
}

.plan-card-body .btn:hover {
    background: #2563eb;
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .plan-hero h1 {
        font-size: 2.8rem;
    }

    .plan-price-hero .current-price {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .plan-hero {
        padding: 40px 0 60px;
    }

    .plan-hero h1 {
        font-size: 2.5rem;
    }

    .plan-price-hero .current-price {
        font-size: 3rem;
    }

    .hero-features {
        flex-wrap: wrap;
        gap: 20px;
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .order-box {
        position: static;
        margin-top: 30px;
    }

    #content {
        margin-top: -30px !important;
    }

    .description-card,
    .endpoints-section {
        padding: 30px;
    }

    .feature-dynamic-name {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .plan-hero {
        padding: 30px 0 50px;
    }

    .plan-hero h1 {
        font-size: 2.2rem;
    }

    .plan-price-hero .current-price {
        font-size: 2.5rem;
    }

    .plan-price-hero .old-price {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-feature {
        width: 100%;
        justify-content: center;
    }

    .description-card,
    .endpoints-section {
        padding: 25px;
    }

    .endpoints-grid {
        grid-template-columns: 1fr;
    }

    #content {
        margin-top: -20px !important;
    }

    .features-list-dynamic li {
        flex-wrap: wrap;
    }

    .feature-dynamic-value {
        margin-left: 30px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .plan-hero h1 {
        font-size: 1.8rem;
    }

    .plan-price-hero .current-price {
        font-size: 2rem;
    }

    .fact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fact-item i {
        margin-bottom: 10px;
    }

    .order-price .current-price {
        font-size: 2.5rem;
    }

    .order-header h3 {
        font-size: 1.5rem;
    }

    .plan-card {
        margin-bottom: 20px;
    }
}
