:root {
    --primary-color: #187ED7;
    --secondary-color: #09417A;
    --accent-color: #D63916;
    --corporate-color: #09417A;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #D63916;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.corporate {
    border: 2px solid var(--corporate-color);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.corporate-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--corporate-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.price-corporate {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--corporate-color);
}

.period {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

.savings {
    background: #e8f5e9;
    color: var(--success-color);
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 10px;
}

.features-corporate li:before {
    content: "★";
    color: var(--corporate-color);
}

.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: rgba(74, 108, 247, 0.1);
}

.btn-corporate {
    background: var(--corporate-color);
    color: white;
}

.btn-corporate:hover {
    background: #5b4bc4;
}

.payment-info {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.payment-info h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.payment-method {
    width: 60px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6c757d;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.close-modal:hover {
    color: var(--dark-color);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--corporate-color);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--corporate-color);
    outline: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.submit-btn {
    background: var(--corporate-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #5b4bc4;
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-top: 20px;
    color: var(--success-color);
}

.success-message i {
    font-size: 3rem;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .pricing-card.popular {
        transform: scale(1);
    }

    h1 {
        font-size: 2rem;
    }

    .pricing-container {
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}