/* Здесь лежат элементы, которые мы используем на разных страницах: карточки, кнопки, баджи и модалки.

/* Карточки */
.content { padding: 20px; margin-top: -20px; }

.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.badge { 
    background: #e3f2fd; 
    color: #1e3c72; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-weight: bold; 
}

/* Кнопки */
.btn-auth {
    width: 100%;
    padding: 15px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* Модальное окно */
.modal {
    display: none; 
    position: fixed;
    z-index: 9999; /* Выше всех, даже выше шапки */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Затемнение */
    backdrop-filter: blur(8px);
    align-items: center; /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 30px;
    width: 85%; /* Чтобы были отступы по бокам на телефоне */
    max-width: 340px; /* Чтобы на компьютере не было гигантским */
    text-align: center;
    position: relative; /* Нужно для позиционирования крестика */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    z-index: 10; /* Чтобы точно была сверху */
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 30px;
    width: 85%;
    text-align: center;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- Calculator Modal --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Золотая рамка для 8-го визита */
.gold-border { border: 4px solid #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }

.gold-mode h3 {
    color: #ffd700;
    text-align: center;
}

/* Кнопки услуг */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.service-item {
    padding: 15px 10px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.service-item:hover {
    background: #3d3d3d;
}

.service-item.active {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.2);
}

/* Инфо-панель цен */
.price-info {
    background: #252525;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.price-row.final {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #444;
    font-size: 1.2rem;
    font-weight: bold;
}

.strike-through {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
}

.calc-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}