
/* ===== ПЕРЕКЛЮЧАТЕЛЬ ===== */
.view-toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f0f2f5;
    padding: 4px;
    border-radius: 8px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.view-btn.active {
    background: #fff;
    color: #2d3436;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.view-btn:hover:not(.active) {
    color: #2d3436;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.view-container {
    display: none;
}

.view-container.active {
    display: block;
}

/* ===== ПЛИТКА ===== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 10px 0;
}

.grid-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #6c5ce7;
}

.grid-card-inner {
    text-align: center;
}

.grid-card-icon {
    font-size: 32px;
    color: #6c5ce7;
    margin-bottom: 10px;
}

.grid-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 6px;
}

.grid-card-count {
    font-size: 13px;
    color: #999;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

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

.modal-container {
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

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

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0 8px;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.modal-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #6c5ce7;
    margin: 20px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}

.modal-subtitle:first-child {
    margin-top: 0;
}

.modal-divider {
    border: none;
    border-top: 2px dashed #e9ecef;
    margin: 20px 0;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.modal-service-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.3s ease;
}

.modal-service-card:hover {
    background: #fff;
    border-color: #6c5ce7;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.12);
}

.modal-service-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 4px;
    line-height: 1.3;
}

.modal-service-code {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.modal-service-price {
    font-size: 16px;
    font-weight: 700;
    color: #6c5ce7;
}
