/* КРАСИВЫЕ МОДАЛЬНЫЕ ОКНА - ПОЛНЫЕ СТИЛИ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

/* ДЕСКТОПНАЯ ВЕРСИЯ - ОЧЕНЬ ШИРОКАЯ БЕЗ ОБВОДКИ */
.modal {
    background: linear-gradient(165deg, #ffffff 0%, #fdf2f8 100%);
    border-radius: 8px;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    box-shadow:
        0 32px 64px rgba(214, 51, 132, 0.25),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #D63384 0%, #E91E63 50%, #9C27B0 100%);
    padding: 40px 50px 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.modal-body {
    padding: 40px 50px;
}

/* ГОРИЗОНТАЛЬНАЯ СТРУКТУРА ДЛЯ ДЕСКТОПА */
.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.modal-form {
    display: flex;
    flex-direction: column;
}

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

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: block;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #f1f5f9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 4px 20px rgba(214, 51, 132, 0.15);
    transform: translateY(-1px);
}

.form-input.error {
    border-color: #e53e3e;
    box-shadow: 0 2px 12px rgba(229, 62, 62, 0.1);
}

.form-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

.modal-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.4);
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(214, 51, 132, 0.6);
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-switch-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: 5px;
}

.modal-switch-btn:hover {
    color: var(--primary-dark);
    background: rgba(214, 51, 132, 0.05);
}

/* ПРЕМИУМ ФИЧИ - ДВА СТОЛБИКА В ВЕБ ВЕРСИИ */
.premium-benefits {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.03) 0%, rgba(233, 30, 99, 0.03) 100%);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(214, 51, 132, 0.1);
    position: relative;
    overflow: hidden;
    height: fit-content;
    box-sizing: border-box;
}

.premium-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.benefits-title {
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    text-align: center;
    justify-content: center;
}

.benefits-title i {
    color: var(--primary);
    font-size: 1.3rem;
}

/* ВЕБ ВЕРСИЯ - ДВА СТОЛБИКА ПО 3 ПУНКТА */
@media (min-width: 769px) {
    .benefits-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid rgba(214, 51, 132, 0.1);
        box-sizing: border-box;
        min-width: 0;
    }

    .benefit-item:hover {
        background: white;
        border-color: rgba(214, 51, 132, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(214, 51, 132, 0.1);
    }

    .benefit-icon {
        width: 40px;
        height: 40px;
        background: var(--primary-gradient);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: white;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .benefit-content {
        flex: 1;
        min-width: 0;
    }

    .benefit-name {
        font-weight: 700;
        color: var(--text-dark);
        font-size: 0.95rem;
        margin-bottom: 5px;
        line-height: 1.3;
    }

    .benefit-desc {
        color: var(--text-light);
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* МОБИЛЬНАЯ ВЕРСИЯ - ОДИН СТОЛБЕЦ С ОПИСАНИЯМИ */
@media (max-width: 1140px) {
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .modal {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        margin: 0;
        max-height: none;
    }

    .modal-header {
        padding: 25px 20px 20px;
        position: relative;
        flex-shrink: 0;
    }

    .modal-body {
        padding: 25px 20px;
        flex: 1;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .modal-content {
        grid-template-columns: 1fr;
        gap: 25px;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-subtitle {
        font-size: 1rem;
    }

    .modal-close {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .premium-benefits {
        padding: 20px;
        margin-top: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .benefits-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
    }

    .benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        border: 1px solid rgba(214, 51, 132, 0.1);
        box-sizing: border-box;
        min-width: 0;
    }

    .benefit-icon {
        width: 36px;
        height: 36px;
        background: var(--primary-gradient);
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        color: white;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .benefit-content {
        flex: 1;
        min-width: 0;
    }

    .benefit-name {
        font-weight: 700;
        color: var(--text-dark);
        font-size: 0.9rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .benefit-desc {
        color: var(--text-light);
        font-size: 0.8rem;
        line-height: 1.4;
        display: block;
    }

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

    .form-input {
        padding: 14px 16px;
    }

    .modal-btn {
        padding: 16px;
        font-size: 1rem;
        margin-top: 15px;
    }

    .modal-switch {
        margin-top: 20px;
    }
}

/* ХОВЕР ЭФФЕКТЫ ТОЛЬКО ДЛЯ ДЕСКТОПА */
@media (hover: hover) {
    .benefit-item:hover {
        transform: translateY(-2px);
    }

    .modal-btn:hover {
        transform: translateY(-2px);
    }
}

/* КОМПАКТНОЕ МОДАЛЬНОЕ ОКНО ТАРИФОВ */
.tariffs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
    overflow: hidden;
}

.tariffs-modal-overlay.active {
    display: flex;
}

.tariffs-modal {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    box-shadow: 0 25px 50px rgba(214, 51, 132, 0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tariffs-modal-header {
    background: linear-gradient(135deg, #D63384 0%, #E91E63 50%, #9C27B0 100%);
    padding: 40px 50px 35px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.tariffs-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.tariffs-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tariffs-modal-close:hover {
    background: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tariffs-modal-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.tariffs-modal-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.tariffs-modal-body {
    padding: 40px 50px;
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* СТИЛИ ДЛЯ ПРЕИМУЩЕСТВ В ВЕБ ВЕРСИИ */
.tariffs-premium-benefits {
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.03) 0%, rgba(233, 30, 99, 0.03) 100%);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(214, 51, 132, 0.1);
    position: relative;
    overflow: hidden;
}

.tariffs-premium-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.tariffs-benefits-title {
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    text-align: center;
    justify-content: center;
}

.tariffs-benefits-title i {
    color: var(--primary);
    font-size: 1.4rem;
}

.tariffs-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.tariffs-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.tariffs-benefit-item:hover {
    background: white;
    border-color: rgba(214, 51, 132, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.1);
}

.tariffs-benefit-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.tariffs-benefit-content {
    flex: 1;
}

.tariffs-benefit-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.tariffs-benefit-desc {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* КОМПАКТНАЯ СЕТКА ТАРИФОВ */
.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 0;
}

/* СУПЕР КОМПАКТНЫЕ КАРТОЧКИ */
.tariff-card {
    background: white;
    border-radius: 10px;
    padding: 41px 15px;
    border: 2px solid #f1f5f9;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.tariff-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tariff-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff, #fdf2f8);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.2);
}

/* УБИРАЕМ ОБВОДКУ У ПОПУЛЯРНЫХ И ВЫГОДНЫХ */
.tariff-card.popular {
    border-color: #f1f5f9;
    background: linear-gradient(135deg, #fff, #fff0f5);
}

.tariff-card.best {
    border-color: #f1f5f9;
    background: linear-gradient(135deg, #fff, #f0fff4);
}

.tariff-card.popular:hover,
.tariff-card.best:hover {
    border-color: var(--primary);
}

.tariff-card.popular.selected,
.tariff-card.best.selected {
    border-color: var(--primary);
}

.tariff-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 2;
    line-height: 1;
}

.tariff-card.popular .tariff-badge {
    background: linear-gradient(135deg, #FF6B9D, #FF4081);
}

.tariff-card.best .tariff-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.tariff-period {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    margin-top: 2px;
}

.tariff-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.tariff-savings {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
}

/* КНОПКА ОПЛАТЫ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ */
.mobile-pay-btn {
    display: none;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.4);
    position: relative;
}

.mobile-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.5);
}

.mobile-pay-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tariffs-footer {
    text-align: center;
    padding: 20px 40px;
    border-top: 1px solid #f1f5f9;
    background: white;
    flex-shrink: 0;
    display: none;
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.security-notice i {
    color: var(--success);
}

/* ДЕСКТОПНЫЕ СТИЛИ */
@media (min-width: 769px) {
    .tariff-btn {
        background: var(--primary-gradient);
        color: white;
        border: none;
        padding: 10px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s ease;
        width: 100%;
        margin-top: 8px;
    }

    .tariff-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(214, 51, 132, 0.3);
    }
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 980px) {
    .tariffs-modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .tariffs-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        max-height: none;
    }

    .tariffs-modal-header {
        padding: 25px 20px 20px;
        background: linear-gradient(135deg, #D63384 0%, #E91E63 50%, #9C27B0 100%);
    }

    .tariffs-modal-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
        background-size: cover;
    }

    .tariffs-modal-close {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .tariffs-modal-body {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
        display: block;
    }

    /* СКРЫВАЕМ ПРЕИМУЩЕСТВА В МОБИЛЬНОЙ ВЕРСИИ */
    .tariffs-premium-benefits {
        display: none;
    }

    .tariffs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .tariff-card {
        padding: 15px 10px;
        min-height: 90px;
    }

    .tariffs-modal-title {
        font-size: 1.8rem;
    }

    .tariffs-modal-subtitle {
        font-size: 1rem;
    }

    /* ПОКАЗЫВАЕМ КНОПКУ ОПЛАТЫ В МОБИЛЬНОЙ ВЕРСИИ */
    .mobile-pay-btn {
        display: block;
    }

    /* СКРЫВАЕМ КНОПКИ ВЫБОРА В КАРТОЧКАХ НА МОБИЛКЕ */
    .tariff-btn {
        display: none;
    }

    /* ПОКАЗЫВАЕМ ФУТЕР В МОБИЛЬНОЙ ВЕРСИИ */
    .tariffs-footer {
        display: block;
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px 20px;
        border-top: 1px solid #e2e8f0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 480px) {
    .tariffs-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tariff-card {
        padding: 12px 8px;
        min-height: 80px;
    }

    .tariffs-modal-header {
        padding: 20px 15px 15px;
    }

    .tariffs-modal-body {
        padding: 15px;
    }

    .tariffs-modal-title {
        font-size: 1.6rem;
    }

    .tariff-period {
        font-size: 0.9rem;
    }

    .tariff-price {
        font-size: 1.2rem;
    }

    .tariff-badge {
        font-size: 0.65rem;
        padding: 3px 10px;
        top: -8px;
    }
}

/* Стили для модального окна с префиксом es- */
.es-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 0;
    overflow: hidden;
}

.es-modal.active {
    display: flex;
}

.es-modal-content {
    background: white;
    width: 100%;
    height: 100%;
    box-shadow: none;
    position: relative;
    animation: esModalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0;
}

@keyframes esModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.es-modal-header {
    background: linear-gradient(135deg, #D63384 0%, #E91E63 50%, #9C27B0 100%);
    padding: 30px 25px 25px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.es-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.es-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.es-modal-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.es-modal-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.es-modal-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.es-modal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.es-modal-section-title i {
    font-size: 1.2rem;
}

.es-modal-text {
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.es-modal-warning {
    background: rgba(214, 51, 132, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.es-modal-warning-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--primary);
}

.es-modal-warning-text {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}

.es-modal-footer {
    text-align: center;
    padding: 20px 25px;
    border-top: 1px solid #f1f5f9;
    background: white;
    flex-shrink: 0;
}

.es-modal-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.es-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.5);
}

.es-modal-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Десктопная версия */
@media (min-width: 769px) {
    .es-modal {
        padding: 20px;
    }

    .es-modal-content {
        width: 95%;
        max-width: 500px;
        height: auto;
        max-height: 90vh;
        border-radius: 20px;
        box-shadow: 0 25px 50px rgba(214, 51, 132, 0.3);
    }

    .es-modal-header {
        padding: 30px 40px 25px;
    }

    .es-modal-body {
        padding: 30px 40px;
    }

    .es-modal-footer {
        padding: 20px 40px;
    }
}

@media (max-width: 480px) {
    .es-modal-header {
        padding: 25px 20px 20px;
    }

    .es-modal-body {
        padding: 20px;
    }

    .es-modal-footer {
        padding: 15px 20px;
    }

    .es-modal-title {
        font-size: 1.5rem;
    }
}

/* МОДАЛЬНОЕ ОКНО СКАЧИВАНИЯ */
.download-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
    overflow: hidden;
}

.download-modal-overlay.active {
    display: flex;
}

.download-modal {
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(214, 51, 132, 0.3);
    position: relative;
    animation: downloadModalSlideIn 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes downloadModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.download-modal-header {
    background: linear-gradient(135deg, #D63384 0%, #E91E63 50%, #9C27B0 100%);
    padding: 30px 40px 25px;
    text-align: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.download-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.download-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.download-modal-close:hover {
    background: white;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.download-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.download-modal-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.download-modal-body {
    padding: 30px 40px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.download-options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.download-option-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.download-option-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.15);
}

.download-option-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff, #fdf2f8);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.2);
}

.download-option-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 5px;
}

.download-option-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.download-option-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.download-option-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.download-modal-footer {
    text-align: center;
    padding: 20px 40px;
    border-top: 1px solid #f1f5f9;
    background: white;
    flex-shrink: 0;
}

.download-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.5);
}

.download-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.download-security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 15px;
}

.download-security-notice i {
    color: var(--success);
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 1140px) {
    .download-modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .download-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        max-height: none;
    }

    .download-modal-header {
        padding: 25px 20px 20px;
    }

    .download-modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .download-modal-body {
        padding: 20px;
        flex: 1;
    }

    .download-modal-title {
        font-size: 1.5rem;
    }

    .download-option-card {
        padding: 20px;
    }

    .download-option-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .download-option-title {
        font-size: 1.1rem;
    }

    .download-modal-footer {
        padding: 15px 20px;
    }

    .download-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .download-modal-header {
        padding: 20px 15px 15px;
    }

    .download-modal-body {
        padding: 15px;
    }

    .download-modal-title {
        font-size: 1.3rem;
    }

    .download-option-card {
        padding: 15px;
    }

    .download-option-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .download-option-title {
        font-size: 1rem;
    }

    .download-option-desc {
        font-size: 0.8rem;
    }
}

/* СТИЛИ ДЛЯ ЧЕКБОКСОВ И ДОПОЛНИТЕЛЬНЫХ ОПЦИЙ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    gap: 15px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    cursor: pointer;
    position: relative;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.checkbox-input:focus + .checkbox-custom {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.checkbox-input:hover + .checkbox-custom {
    border-color: var(--primary-light);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* СТИЛЬ ДЛЯ ССЫЛКИ "ЗАБЫЛИ ПАРОЛЬ" */
.forgot-password-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.forgot-password-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 1140px) {
    .form-options {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin: 12px 0;
    }

    .forgot-password-link {
        align-self: center;
        margin-top: 0;
        margin-left: auto;
    }

    .form-checkbox {
        margin: 0;
        flex-shrink: 0;
    }

    .checkbox-label {
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ РАЗНЫХ ТИПОВ ЧЕКБОКСОВ */
.form-checkbox.required .checkbox-label::after {
    content: ' *';
    color: #e53e3e;
}

.form-checkbox.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-checkbox.disabled .checkbox-label {
    cursor: not-allowed;
}

/* СТИЛИ ДЛЯ ГРУПП ЧЕКБОКСОВ */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.checkbox-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* ВАРИАНТ С ИКОНКОЙ */
.form-checkbox.with-icon {
    align-items: flex-start;
}

.form-checkbox.with-icon .checkbox-custom {
    margin-top: 2px;
}

.form-checkbox.with-icon .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* БОЛЬШОЙ ЧЕКБОКС ДЛЯ ВАЖНЫХ СОГЛАШЕНИЙ */
.form-checkbox.large .checkbox-custom {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    font-size: 16px;
}

.form-checkbox.large .checkbox-label {
    font-size: 1rem;
    font-weight: 600;
}

/* АЛЬТЕРНАТИВНЫЙ СТИЛЬ ЧЕКБОКСА */
.checkbox-custom.smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-custom.smooth::after {
    transition: all 0.3s ease;
}

/* СТИЛИ ДЛЯ ОШИБОК В ФОРМАХ */
.form-input.error {
    border-color: #e53e3e;
    box-shadow: 0 2px 12px rgba(229, 62, 62, 0.1);
}

.form-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.form-error.show {
    display: block;
}

/* СТИЛИ ДЛЯ КНОПОК В ФОРМАХ */
.modal-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.modal-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ДОПОЛНИТЕЛЬНЫЕ ОПЦИИ ФОРМ */
.form-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
}

/* СТИЛИ ДЛЯ ПЕРЕКЛЮЧЕНИЯ МЕЖДУ ФОРМАМИ */
.modal-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-switch-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    margin-left: 5px;
}

.modal-switch-btn:hover {
    color: var(--primary-dark);
    background: rgba(214, 51, 132, 0.05);
}

/* ХОВЕР ЭФФЕКТЫ ТОЛЬКО ДЛЯ ДЕСКТОПА */
@media (hover: hover) {
    .form-checkbox:hover .checkbox-custom:not(.disabled) {
        border-color: var(--primary-light);
        box-shadow: 0 2px 8px rgba(214, 51, 132, 0.1);
    }

    .modal-switch-btn:hover {
        transform: translateY(-1px);
    }
}

/* АНИМАЦИИ */
@keyframes checkboxCheck {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkbox-input:checked + .checkbox-custom {
    animation: checkboxCheck 0.3s ease;
}

/* ТЕМНАЯ ТЕМА (ЕСЛИ НУЖНО) */
@media (prefers-color-scheme: dark) {
    .checkbox-custom {
        background: #2d3748;
        border-color: #4a5568;
    }

    .checkbox-label {
        color: #e2e8f0;
    }

    .form-input {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .form-input:focus {
        background: #2d3748;
        border-color: var(--primary);
    }
}

/* КОМПАКТНЫЙ ВАРИАНТ ДЛЯ ПЛОТНЫХ ФОРМ */
.form-checkbox.compact {
    margin: 8px 0;
}

.form-checkbox.compact .checkbox-custom {
    width: 18px;
    height: 18px;
    font-size: 12px;
}

.form-checkbox.compact .checkbox-label {
    font-size: 0.85rem;
}

/* ВАРИАНТ С ТОЛЬКО ИКОНКОЙ (БЕЗ ТЕКСТА) */
.form-checkbox.icon-only .checkbox-custom {
    width: 24px;
    height: 24px;
    font-size: 16px;
}

.form-checkbox.icon-only .checkbox-label {
    display: none;
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ МОДАЛКИ ВОССТАНОВЛЕНИЯ ПАРОЛЯ */
#forgotModal .modal-icon {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#forgotModal .benefits-title i {
    color: #4CAF50;
}

#forgotModal .benefit-icon {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}
